Module: MyFeeds::Eater

Extended by:
ActiveSupport::Concern
Defined in:
lib/my_feeds/eater.rb

Instance Method Summary collapse

Instance Method Details

#feeds_for(scope) ⇒ Object


5
6
7
# File 'lib/my_feeds/eater.rb', line 5

def feeds_for scope
  Feed.where source_identity: scope.select(scope.klass.polymorphic_identity_column)
end