budget_category: Drop override of subcategory? (#310)

This commit is contained in:
Dylan Corrales
2025-11-10 08:35:18 -05:00
committed by GitHub
parent 45e2f04d9e
commit 28eeebd1eb

View File

@@ -140,8 +140,4 @@ class BudgetCategory < ApplicationRecord
.joins(:category)
.where(categories: { parent_id: category.id })
end
def subcategory?
category.parent_id.present?
end
end