diff --git a/app/controllers/admin/accounts_controller.rb b/app/controllers/admin/accounts_controller.rb index aa656d4f0..3ed592092 100644 --- a/app/controllers/admin/accounts_controller.rb +++ b/app/controllers/admin/accounts_controller.rb @@ -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')