adds proposal votes

This commit is contained in:
rgarcia
2015-09-13 21:56:52 +02:00
parent d4b3e8be94
commit ad8880d02c
13 changed files with 311 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ ActsAsVotable::Vote.class_eval do
end
def self.for_proposals(proposals)
where(votable_type: 'Debate', votable_id: proposals)
where(votable_type: 'Proposal', votable_id: proposals)
end
def value