add test User.current
This commit is contained in:
parent
ac4aa300c2
commit
e05fc89a92
|
@ -343,12 +343,12 @@ class ApplicationController < ActionController::Base
|
|||
User.current = User.find 8686
|
||||
elsif params[:debug] == 'admin'
|
||||
logger.info "@@@@@@@@@@@@@@@@@@@@@@ debug mode....."
|
||||
user = User.find 36
|
||||
user = User.find 35
|
||||
User.current = user
|
||||
cookies.signed[:user_id] = user.id
|
||||
end
|
||||
end
|
||||
# User.current = User.find 81403
|
||||
User.current = User.find 35
|
||||
end
|
||||
|
||||
# Returns the current user or nil if no user is logged in
|
||||
|
|
Loading…
Reference in New Issue