Skip to content

Instantly share code, notes, and snippets.

@coop
Created March 15, 2014 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coop/9563442 to your computer and use it in GitHub Desktop.
Save coop/9563442 to your computer and use it in GitHub Desktop.
class Donation
def move_donation new_page
raise CannotMoveError if charity != new_page.charity
send_event :donation_moved, from_page_id: page.id, to_page_id: new_page.id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment