mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-10 00:07:08 +02:00
Match method name with its behavior
find_user -> set_user ^^^^
This commit is contained in:
parent
8567315956
commit
c0d90640a3
@ -1,5 +1,5 @@
|
||||
class UsersController < ApplicationController
|
||||
before_action :find_user
|
||||
before_action :set_user
|
||||
|
||||
def show
|
||||
end
|
||||
@ -14,7 +14,7 @@ class UsersController < ApplicationController
|
||||
|
||||
private
|
||||
|
||||
def find_user
|
||||
def set_user
|
||||
@user = User.new(name: session[:user_name])
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user