Skip to content

Instantly share code, notes, and snippets.

@thisduck
Last active December 29, 2015 00:39
Show Gist options
  • Save thisduck/7587254 to your computer and use it in GitHub Desktop.
Save thisduck/7587254 to your computer and use it in GitHub Desktop.
def update_bank_account
bank_account = BankAccount.find params[:bank_account_id]
bank_account.attributes = params[:bank_account]
bank_account.purgatory!(current_user)
end
def approve
purgatory = Purgatory.find params[:id]
purgatory.approve!(current_user)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment