Module: Spree::SpreeProductDecorator

Defined in:
app/decorators/models/spree/spree_product_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



5
6
7
8
# File 'app/decorators/models/spree/spree_product_decorator.rb', line 5

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