Sha256: 524068c35755bf9098d529f1b4db7b036421af0ef007f24f3b87d55481fb5efe

Contents?: true

Size: 268 Bytes

Versions: 11

Compression:

Stored size: 268 Bytes

Contents

module Spree
  Paperclip.interpolates :viewable_id do |attachment, _style|
    attachment.instance.viewable_id
  end

  class Asset < Spree::Base
    belongs_to :viewable, polymorphic: true, touch: true
    acts_as_list scope: [:viewable_id, :viewable_type]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-3.4.6 app/models/spree/asset.rb
spree_core-3.5.0 app/models/spree/asset.rb
spree_core-3.5.0.rc2 app/models/spree/asset.rb
spree_core-3.5.0.rc1 app/models/spree/asset.rb
spree_core-3.4.5 app/models/spree/asset.rb
spree_core-3.4.4 app/models/spree/asset.rb
spree_core-3.4.3 app/models/spree/asset.rb
spree_core-3.4.2 app/models/spree/asset.rb
spree_core-3.4.1 app/models/spree/asset.rb
spree_core-3.4.0 app/models/spree/asset.rb
spree_core-3.4.0.rc2 app/models/spree/asset.rb