Created
August 1, 2013 06:39
-
-
Save pavelnikolov/6128938 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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