Sha256: 5f1637e8c2dfc9deb93dff67b7a18822da834b2bc3cb70dadc2507823e9ca1bd

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true
module Timeful
  # A feed item is an instance of an activity in a specific user's feed.
  #
  # Feed items are automatically created by Timeful when an activity is created for all subscribers
  # of the activty.
  #
  # @author Alessandro Desantis
  class FeedItem < ApplicationRecord
    belongs_to :subscriber, polymorphic: true
    belongs_to :activity
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
timeful-2.1.0 app/models/timeful/feed_item.rb
timeful-2.0.0 app/models/timeful/feed_item.rb
timeful-1.1.0 app/models/timeful/feed_item.rb
timeful-1.0.0 app/models/timeful/feed_item.rb