Public Instance methods
persist_session(headers, session)
Do nothing if not using sessions.
[show source]
# File lib/roda/plugins/conditional_sessions.rb 59 def persist_session(headers, session) 60 super if use_sessions? 61 end
session()
Raise RodaError
if not using sessions.
[show source]
# File lib/roda/plugins/conditional_sessions.rb 41 def session 42 raise RodaError, "session called on request not using sessions" unless use_sessions? 43 super 44 end
session_created_at()
Raise RodaError
if not using sessions.
[show source]
# File lib/roda/plugins/conditional_sessions.rb 47 def session_created_at 48 raise RodaError, "session_created_at called on request not using sessions" unless use_sessions? 49 super 50 end
session_updated_at()
Raise RodaError
if not using sessions.
[show source]
# File lib/roda/plugins/conditional_sessions.rb 53 def session_updated_at 54 raise RodaError, "session_updated_at called on request not using sessions" unless use_sessions? 55 super 56 end