Sha256: 7d92e48585c41cc0d86f58d9dd3fabed24a4e2264ac265c2d5fa0c8e776877be

Contents?: true

Size: 523 Bytes

Versions: 10

Compression:

Stored size: 523 Bytes

Contents

# include MuckServices::Models::MuckFeedParent
module MuckServices
  module Models
    module MuckFeedParent
      # Gives the class it is called on access to feeds.
      # Retrieve feeds via object.feeds. ie @user.feeds.
      # This is used to indicate which feeds a user would like to have access to.

      extend ActiveSupport::Concern
      
      included do
        has_many :feed_parents, :as => :ownable
        has_many :feeds, :through => :feed_parents, :order => 'created_at desc'
      end

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
muck-services-3.3.3 lib/muck-services/models/feed_parent.rb
muck-services-3.3.2 lib/muck-services/models/feed_parent.rb
muck-services-3.3.1 lib/muck-services/models/feed_parent.rb
muck-services-3.3.0 lib/muck-services/models/feed_parent.rb
muck-services-3.2.2 lib/muck-services/models/feed_parent.rb
muck-services-3.2.1 lib/muck-services/models/feed_parent.rb
muck-services-3.2.0 lib/muck-services/models/feed_parent.rb
muck-services-3.1.1 lib/muck-services/models/feed_parent.rb
muck-services-3.1.0 lib/muck-services/models/feed_parent.rb
muck-services-3.0.0 lib/muck-services/models/feed_parent.rb