lib/tachiban.rb
def handle_session
      if session_expired?
        @redirect_url ||= routes.root_path
        session[:current_user] = nil
        flash[:failed_notice] = 'Your session has expired.'
        redirect_to @redirect_url
      else
        restart_session_counter
      end
    end
# If the session hasn't expired the restart_session_counter method is
# called to reset the session start time.
If the session hasn't expired the restart_session_counter method is
called to reset the session start time.
If the session hasn ' t expired the restart_session_counter method is called to reset the session start time .
def handle_session
      if session_expired?
        @redirect_url ||= routes.root_path
        session[:current_user] = nil
        flash[:failed_notice] = 'Your session has expired.'
        redirect_to @redirect_url
      else
        restart_session_counter
      end
    end
def handle_session if session_expired? @redirect_url ||= routes . root_path session [ :current_user ] = nil flash [ :failed_notice ] = 'Your session has expired.' redirect_to @redirect_url else restart_session_counter end end
If the session hasn't expired the restart_session_counter method is
called to reset the session start time.
If the session hasn ' t expired the restart_session_counter method is called to reset the session start time .