Class: LimitedSessions::SelfCleaningSession

Inherits:
ActiveRecord::SessionStore::Session
  • Object
show all
Defined in:
lib/limited_sessions/self_cleaning_session.rb

Class Method Summary collapse

Class Method Details

.find_by_session_id(session_id) ⇒ Object

This disables compatibility with ‘sessid’. The key column must be session_id. If this is a problem, use a migration and rename the column.



24
25
26
27
# File 'lib/limited_sessions/self_cleaning_session.rb', line 24

def find_by_session_id(session_id)
  consider_self_clean
  active_session.current_session.where(session_id: session_id).first
end