mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +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[:account][:balance],
|
||||||
params[:description],
|
params[:description],
|
||||||
AccountActivity::UPDATE_CREDIT)
|
AccountActivity::UPDATE_CREDIT)
|
||||||
unless action.call
|
if action.call
|
||||||
|
redirect_to admin_accounts_path, notice: t('.updated')
|
||||||
|
else
|
||||||
flash[:alert] = t('invalid_balance')
|
flash[:alert] = t('invalid_balance')
|
||||||
render 'edit'
|
render 'edit'
|
||||||
end
|
end
|
||||||
|
|
||||||
redirect_to admin_accounts_path, notice: t('.updated') if action.call
|
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue