Sha256: 2e76d147c912e0f6553e15ea792dce507e376419213b9be7a0209fe6db2e0b15

Contents?: true

Size: 445 Bytes

Versions: 36

Compression:

Stored size: 445 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, optional: true
    belongs_to :property, class_name: 'Spree::Property', inverse_of: :product_properties, optional: true

    self.allowed_ransackable_attributes = ['value']
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
solidus_core-4.4.2 app/models/spree/product_property.rb
solidus_core-4.4.1 app/models/spree/product_property.rb
solidus_core-4.4.0 app/models/spree/product_property.rb
solidus_core-4.3.4 app/models/spree/product_property.rb
solidus_core-4.2.4 app/models/spree/product_property.rb
solidus_core-4.1.5 app/models/spree/product_property.rb
solidus_core-4.3.3 app/models/spree/product_property.rb
solidus_core-4.3.2 app/models/spree/product_property.rb
solidus_core-4.1.4 app/models/spree/product_property.rb
solidus_core-4.3.1 app/models/spree/product_property.rb
solidus_core-4.3.0 app/models/spree/product_property.rb
solidus_core-4.2.3 app/models/spree/product_property.rb
solidus_core-4.1.3 app/models/spree/product_property.rb
solidus_core-4.0.4 app/models/spree/product_property.rb
solidus_core-3.4.6 app/models/spree/product_property.rb
solidus_core-4.0.3 app/models/spree/product_property.rb
solidus_core-4.1.2 app/models/spree/product_property.rb
solidus_core-4.2.2 app/models/spree/product_property.rb
solidus_core-3.4.5 app/models/spree/product_property.rb
solidus_core-4.2.1 app/models/spree/product_property.rb