Sha256: 9d0f0d9eee3fba6fe1ba2c39bd24a879f2d81b6f7e3eb44700df7984474b1843

Contents?: true

Size: 310 Bytes

Versions: 11

Compression:

Stored size: 310 Bytes

Contents

module Alchemy
  class EssenceSpreeProduct < ActiveRecord::Base
    belongs_to :product, class_name: "Spree::Product", foreign_key: 'spree_product_id'

    acts_as_essence(
      ingredient_column: 'spree_product_id',
      preview_text_method: 'name'
    )

    def ingredient
      product
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
alchemy-solidus-1.1.1 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-2.4.0 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-2.3.2 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-2.3.1 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-2.3.0 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-2.2.0 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-2.0.0 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-1.1.0 app/models/alchemy/essence_spree_product.rb
alchemy-solidus-1.0.0 app/models/alchemy/essence_spree_product.rb
alchemy_spree-0.3.0 app/models/alchemy/essence_spree_product.rb
alchemy_spree-1.0.0.beta app/models/alchemy/essence_spree_product.rb