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.6.3 app/models/spree/product_property.rb
solidus_core-2.8.0 app/models/spree/product_property.rb
solidus_core-2.7.1 app/models/spree/product_property.rb
solidus_core-2.6.2 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.14 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.13 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.12 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.11 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.10 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.9 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.8 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.7 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.6 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.5 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.4 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.3 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.1 app/models/spree/product_property.rb
solidus_core_devise_token_auth-2.8.0.alpha.0 app/models/spree/product_property.rb
solidus_core-2.7.0 app/models/spree/product_property.rb
solidus_core-2.6.1 app/models/spree/product_property.rb