Skip to content

Instantly share code, notes, and snippets.

@sheenobu
Created October 30, 2012 15:36
Show Gist options
  • Save sheenobu/3980998 to your computer and use it in GitHub Desktop.
Save sheenobu/3980998 to your computer and use it in GitHub Desktop.
Spree Commerce: Trigger on a completion of an order
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