Last active
December 29, 2015 00:39
-
-
Save thisduck/7587254 to your computer and use it in GitHub Desktop.
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
def update_bank_account | |
bank_account = BankAccount.find params[:bank_account_id] | |
bank_account.attributes = params[:bank_account] | |
bank_account.purgatory!(current_user) | |
end |
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
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