Sha256: c0de5139397133a7bc99a2f15ee4c2af7c03f610854434abaee6af0499ce4ad2

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

module Tekeya
  module Feed
    module Attachment
      extend ActiveSupport::Concern

      included do
        belongs_to :attache, polymorphic: true, autosave: true
        belongs_to :attachable, polymorphic: true, autosave: true
        belongs_to :notification_attache, polymorphic: true, autosave: true

        include ActiveModel::Serializers::JSON
        attr_accessible :attache, :attachable, :notification_attache
      end

      module ClassMethods
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tekeya-0.0.10 lib/tekeya/feed/attachment.rb
tekeya-0.0.9 lib/tekeya/feed/attachment.rb