Removed unnecessary parts in Legislation Proposals

This commit is contained in:
María Checa
2017-09-21 16:17:11 +02:00
parent 38ba5e159b
commit ba041f90c8
12 changed files with 17 additions and 214 deletions

View File

@@ -98,7 +98,7 @@ class User < ActiveRecord::Base
end
def legislation_proposal_votes(proposals)
voted = votes.for_proposals(proposals)
voted = votes.for_legislation_proposals(proposals)
voted.each_with_object({}) { |v, h| h[v.votable_id] = v.value }
end