Remove useless assignment

This commit is contained in:
Douwe Maan 2015-10-12 15:34:08 +02:00
parent 41075bad8d
commit 7a0cc665ff

View file

@ -38,7 +38,7 @@ module Participable
# Be aware that this method makes a lot of sql queries.
# Save result into variable if you are going to reuse it inside same request
def participants(current_user = self.author)
participants = self.class.participant_attrs.flat_map do |attr|
self.class.participant_attrs.flat_map do |attr|
meth = method(attr)
value =