add missing action to block

This commit is contained in:
James Lopez 2017-06-22 11:37:36 +02:00
parent c9fd3dc42c
commit 4c75fe5dfe

View file

@ -125,9 +125,9 @@ class Admin::UsersController < Admin::ApplicationController
end end
respond_to do |format| respond_to do |format|
user.skip_reconfirmation! result = Users::UpdateService.new(current_user, user, user_params_with_pass).execute do |user|
user.skip_reconfirmation!
result = Users::UpdateService.new(current_user, user, user_params_with_pass).execute end
if result[:status] == :success if result[:status] == :success
format.html { redirect_to [:admin, user], notice: 'User was successfully updated.' } format.html { redirect_to [:admin, user], notice: 'User was successfully updated.' }