Module: Alchemy::Solidus::SpreeProductDecorator

Defined in:
app/decorators/models/alchemy/solidus/spree_product_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



6
7
8
9
# File 'app/decorators/models/alchemy/solidus/spree_product_decorator.rb', line 6

def self.prepended(base)
  base.include Alchemy::Solidus::TouchAlchemyIngredients
  base.has_many :alchemy_ingredients, class_name: "Alchemy::Ingredients::SpreeProduct", as: :related_object, dependent: :nullify
end