mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 08:47:06 +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
|
class UsersController < ApplicationController
|
||||||
before_action :find_user
|
before_action :set_user
|
||||||
|
|
||||||
def show
|
def show
|
||||||
end
|
end
|
||||||
@ -14,7 +14,7 @@ class UsersController < ApplicationController
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def find_user
|
def set_user
|
||||||
@user = User.new(name: session[:user_name])
|
@user = User.new(name: session[:user_name])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user