Remove method to get votes for budget investments

After commit 0214184b2, this method was only used in two places and was
only useful in one of them. IMHO it isn't worth it add a monkey-patch
for such a minor usage.
This commit is contained in:
Javi Martín
2022-04-05 22:44:30 +02:00
parent c25ab8e4a6
commit 0a3c86b92e
2 changed files with 2 additions and 6 deletions

View File

@@ -13,10 +13,6 @@ ActsAsVotable::Vote.class_eval do
Comment.public_for_api.pluck(:id))
end
def self.for_budget_investments(budget_investments = Budget::Investment.all)
where(votable_type: "Budget::Investment", votable_id: budget_investments)
end
def value
vote_flag
end