Module: Kinney::Concerns::Models::Topic::ClassMethods

Defined in:
lib/concerns/models/topic.rb

Instance Method Summary collapse

Instance Method Details

#with_clipsObject



19
20
21
# File 'lib/concerns/models/topic.rb', line 19

def with_clips
  joins(:clips).group("kinney_topics.id HAVING count(kinney_clips.id) > 0")
end