mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 15:14:47 +02:00
fixed codeclimate errors
This commit is contained in:
parent
43518b5832
commit
b8cf5a9009
1 changed files with 5 additions and 3 deletions
|
@ -16,9 +16,11 @@ module Admin
|
||||||
|
|
||||||
def update
|
def update
|
||||||
if @account.valid?
|
if @account.valid?
|
||||||
action = Actions::AccountActivityCreate.new(@account, params[:account][:balance],
|
action = Actions::AccountActivityCreate.new(@account,
|
||||||
params[:description], AccountActivity::UPDATE_CREDIT)
|
params[:account][:balance],
|
||||||
redirect_to admin_accounts_path, notice: t('.updated') and return if action.call
|
params[:description],
|
||||||
|
AccountActivity::UPDATE_CREDIT)
|
||||||
|
redirect_to admin_accounts_path, notice: t('.updated') && return if action.call
|
||||||
end
|
end
|
||||||
|
|
||||||
flash[:alert] = t('invalid_balance')
|
flash[:alert] = t('invalid_balance')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue