Created
October 30, 2012 15:36
-
-
Save sheenobu/3980998 to your computer and use it in GitHub Desktop.
Spree Commerce: Trigger on a completion of an order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree::Order.class_eval do | |
# or before_transition | |
state_machine.after_transition :to => 'complete' do |order| | |
... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment