提交 4c75fe5d 编写于 作者: J James Lopez

add missing action to block

上级 c9fd3dc4
......@@ -125,9 +125,9 @@ class Admin::UsersController < Admin::ApplicationController
end
respond_to do |format|
user.skip_reconfirmation!
result = Users::UpdateService.new(current_user, user, user_params_with_pass).execute
result = Users::UpdateService.new(current_user, user, user_params_with_pass).execute do |user|
user.skip_reconfirmation!
end
if result[:status] == :success
format.html { redirect_to [:admin, user], notice: 'User was successfully updated.' }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册