Created
January 10, 2012 13:45
-
-
Save djgraham/1589150 to your computer and use it in GitHub Desktop.
payment.rb
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
# the wrong way.. | |
class Payment < ActiveRecord::Base | |
belongs_to :booking | |
after_save :update_booking | |
def update_booking | |
booking.save | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment