Module: Likeable::ClassMethods

Defined in:
app/models/concerns/likeable.rb

Instance Method Summary collapse

Instance Method Details

#likes_or_dislikes_for(user, ids) ⇒ Object



32
33
34
# File 'app/models/concerns/likeable.rb', line 32

def likes_or_dislikes_for(user, ids)
   user.likes_or_dislikes.for_targets(name, ids).index_by(&:target_id)
end