diff --git a/app/models/budget/stats.rb b/app/models/budget/stats.rb index 7cd4d40f1..513fc0af4 100644 --- a/app/models/budget/stats.rb +++ b/app/models/budget/stats.rb @@ -130,7 +130,7 @@ class Budget::Stats end def supports(supportable) - ActsAsVotable::Vote.where(votable_type: "Budget::Investment", votable_id: supportable.investments.pluck(:id)) + Vote.where(votable: supportable.investments) end stats_cache(*stats_methods)