Skip to content

Instantly share code, notes, and snippets.

@mpapis
Last active January 1, 2016 22:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpapis/8212359 to your computer and use it in GitHub Desktop.
Save mpapis/8212359 to your computer and use it in GitHub Desktop.
I hate asymmetrical code
apply_event :transfer_sent, :target_account_uid => target,
:amount => amount,
:new_balance => new_balance.amount,
:account_uid => uid
apply_event :transfer_sent, {
:target_account_uid => target,
:amount => amount,
:new_balance => new_balance.amount,
:account_uid => uid,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment