Skip to content

Commit

Permalink
hotfix pending approval bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
superspike7 committed Jul 15, 2022
1 parent 23b3a90 commit ec7f59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create
end

def update
if @user.update(user_params)
if @user.update!(user_params)
redirect_to admin_all_path, notice: 'The user has been updated.'
if user_params.has_key?(:pending)
ApprovedMailer.with(user: @user).approved_mail.deliver_now
Expand Down

0 comments on commit ec7f59f

Please sign in to comment.