mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44: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
|
||||
if @account.valid?
|
||||
action = Actions::AccountActivityCreate.new(@account, params[:account][:balance],
|
||||
params[:description], AccountActivity::UPDATE_CREDIT)
|
||||
redirect_to admin_accounts_path, notice: t('.updated') and return if action.call
|
||||
action = Actions::AccountActivityCreate.new(@account,
|
||||
params[:account][:balance],
|
||||
params[:description],
|
||||
AccountActivity::UPDATE_CREDIT)
|
||||
redirect_to admin_accounts_path, notice: t('.updated') && return if action.call
|
||||
end
|
||||
|
||||
flash[:alert] = t('invalid_balance')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue