Module: Alchemy::Solidus::SpreeProductPatch
- Defined in:
- app/patches/models/alchemy/solidus/spree_product_patch.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
6 7 8 9 10 |
# File 'app/patches/models/alchemy/solidus/spree_product_patch.rb', line 6 def self.prepended(base) # Solidus runs touch callbacks on product after_save base.after_touch :touch_alchemy_ingredients base.has_many :alchemy_ingredients, class_name: "Alchemy::Ingredients::SpreeProduct", as: :related_object, dependent: :nullify end |