Skip to content

Instantly share code, notes, and snippets.

@pavelnikolov
Created August 1, 2013 06:39
Show Gist options
  • Save pavelnikolov/6128938 to your computer and use it in GitHub Desktop.
Save pavelnikolov/6128938 to your computer and use it in GitHub Desktop.
module Spree
class OrderObserver < ActiveRecord::Observer
# Generic transition callback *after* the transition is performed
def after_transition(order, transition)
raise "after transtion"
end
def after_complete(order, transition)
raise "It works!!!"
end
def after_address(order, transition)
raise "works!!!"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment