diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb index 771b21d..8cae6ea 100644 --- a/app/controllers/concerns/authentication.rb +++ b/app/controllers/concerns/authentication.rb @@ -21,7 +21,6 @@ module Authentication resume_session || request_authentication end - def resume_session Current.session ||= find_session_by_cookie end @@ -30,7 +29,6 @@ module Authentication Session.find_by(id: cookies.signed[:session_id]) end - def request_authentication session[:return_to_after_authenticating] = request.url redirect_to new_session_path @@ -40,7 +38,6 @@ module Authentication session.delete(:return_to_after_authenticating) || root_url end - def start_new_session_for(user) user.sessions.create!(user_agent: request.user_agent, ip_address: request.remote_ip).tap do |session| Current.session = session