Skip to content

Instantly share code, notes, and snippets.

@djgraham
Created January 10, 2012 13:45
Show Gist options
  • Save djgraham/1589150 to your computer and use it in GitHub Desktop.
Save djgraham/1589150 to your computer and use it in GitHub Desktop.
payment.rb
# 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