Sha256: 329a9e0fef84d7c8b1698ef074b32518f3eb48f772f3f29cbd68780163320de8

Contents?: true

Size: 195 Bytes

Versions: 1

Compression:

Stored size: 195 Bytes

Contents

module MyFeeds
  module Eater
    extend ActiveSupport::Concern

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
my_feeds-1.0.0 lib/my_feeds/eater.rb