Merge Vote.in with Vote.for_debates
This commit is contained in:
@@ -77,8 +77,8 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def debate_votes(debates)
|
||||
voted = votes.for_debates.in(debates)
|
||||
voted.each_with_object({}) { |v, _| _[v.votable_id] = v.value }
|
||||
voted = votes.for_debates(debates)
|
||||
voted.each_with_object({}) { |v, h| h[v.votable_id] = v.value }
|
||||
end
|
||||
|
||||
def administrator?
|
||||
|
||||
Reference in New Issue
Block a user