Skip to content

Commit

Permalink
Disable session timeout in dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Jan 4, 2017
1 parent 3e592f0 commit f512e6b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class ApplicationController < ActionController::Base
def authenticate_user
redirect_to main_app.login_url and return unless depp_current_user && session[:last_seen]

return if Rails.env.development?

if (session[:last_seen].to_i + ENV['session_timeout'].to_i) < Time.now.to_i
session_timeout
else
Expand Down

0 comments on commit f512e6b

Please sign in to comment.