app/controllers/users_controller.rb in fluentd-ui-0.3.19 vs app/controllers/users_controller.rb in fluentd-ui-0.3.20

- old
+ new

@@ -1,7 +1,7 @@ class UsersController < ApplicationController - before_action :find_user + before_action :set_user def show end def update @@ -12,10 +12,10 @@ redirect_to user_path, notice: I18n.t("messages.password_successfully_updated") end private - def find_user + def set_user @user = User.new(name: session[:user_name]) end def user_params params.require(:user).permit(:current_password, :password, :password_confirmation)