mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
minor fixes
This commit is contained in:
parent
f08e95642d
commit
7be7282d89
1 changed files with 3 additions and 3 deletions
|
@ -19,12 +19,12 @@ module Admin
|
|||
params[:account][:balance],
|
||||
params[:description],
|
||||
AccountActivity::UPDATE_CREDIT)
|
||||
unless action.call
|
||||
if action.call
|
||||
redirect_to admin_accounts_path, notice: t('.updated')
|
||||
else
|
||||
flash[:alert] = t('invalid_balance')
|
||||
render 'edit'
|
||||
end
|
||||
|
||||
redirect_to admin_accounts_path, notice: t('.updated') if action.call
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue