Sha256: b9028b16ee85745425bee4218bc9930486c568b60e030a8df7523bf5bb2fb608

Contents?: true

Size: 417 Bytes

Versions: 42

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

module Spree
  class ProductProperty < Spree::Base
    include Spree::OrderedPropertyValueList

    acts_as_list scope: :product

    belongs_to :product, touch: true, class_name: 'Spree::Product', inverse_of: :product_properties
    belongs_to :property, class_name: 'Spree::Property', inverse_of: :product_properties

    self.whitelisted_ransackable_attributes = ['value']
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

Version Path
solidus_core-2.9.6 app/models/spree/product_property.rb
solidus_core-2.8.6 app/models/spree/product_property.rb
solidus_core-2.9.5 app/models/spree/product_property.rb
solidus_core-2.9.4 app/models/spree/product_property.rb
solidus_core-2.6.6 app/models/spree/product_property.rb
solidus_core-2.7.4 app/models/spree/product_property.rb
solidus_core-2.8.5 app/models/spree/product_property.rb
solidus_core-2.9.3 app/models/spree/product_property.rb
solidus_core-2.9.2 app/models/spree/product_property.rb
solidus_core-2.7.3 app/models/spree/product_property.rb
solidus_core-2.6.5 app/models/spree/product_property.rb
solidus_core-2.9.1 app/models/spree/product_property.rb
solidus_core-2.9.0 app/models/spree/product_property.rb
solidus_core-2.9.0.rc.1 app/models/spree/product_property.rb
solidus_core-2.8.4 app/models/spree/product_property.rb
solidus_core-2.8.3 app/models/spree/product_property.rb
solidus_core-2.7.2 app/models/spree/product_property.rb
solidus_core-2.6.4 app/models/spree/product_property.rb
solidus_core-2.8.2 app/models/spree/product_property.rb
solidus_core-2.8.1 app/models/spree/product_property.rb