Sha256: 8a050661d5e637c0c9f3ce7445d6328dd8d69986d35f65a9603f4577a815f555

Contents?: true

Size: 155 Bytes

Versions: 2

Compression:

Stored size: 155 Bytes

Contents

module Feeder
  class Item < ActiveRecord::Base
    belongs_to :feedable, polymorphic: true

    def type
      feedable_type.underscore
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
feeder-0.3.0 app/models/feeder/item.rb
feeder-0.2.0 app/models/feeder/item.rb