Module: SpreePluggto::Spree::ShipmentDecorator
- Defined in:
- app/models/spree_pluggto/spree/shipment_decorator.rb
Class Method Summary collapse
-
.prepended(base) ⇒ Object
guides.spreecommerce.org/developer/customization/logic.html self.prepended is needed to access class-level methods, like has_many, scopes and callbacks.
Class Method Details
.prepended(base) ⇒ Object
guides.spreecommerce.org/developer/customization/logic.html self.prepended is needed to access class-level methods, like has_many, scopes and callbacks
7 8 9 |
# File 'app/models/spree_pluggto/spree/shipment_decorator.rb', line 7 def self.prepended(base) base.state_machine.after_transition to: :shipped, do: :update_pluggto_order, if: :pluggto_order? end |