Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
Merge pull request #763 from fastlane/KrauseFx-patch-4
Browse files Browse the repository at this point in the history
Fix UsersController not using named parameter
  • Loading branch information
KrauseFx committed Apr 26, 2018
2 parents ccbd7de + d520b43 commit 8600268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/features/users/users_controller.rb
Expand Up @@ -31,12 +31,12 @@ class UsersController < AuthenticatedControllerBase
# Updates a user existing in the configuration repository `users.json`
post "#{HOME}/update" do
if valid_params?(params, post_parameter_list_for_validation)
new_user = User.new(
updated_user = User.new(
id: params[:id],
email: params[:email]
)

Services.user_service.update_user!(new_user)
Services.user_service.update_user!(user: updated_user)
end

redirect(HOME)
Expand Down

0 comments on commit 8600268

Please sign in to comment.