Module: ActionDispatch::Session::SessionObject

Included in:
AbstractSecureStore, AbstractStore, MemCacheStore
Defined in:
lib/action_dispatch/middleware/session/abstract_store.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#loaded_session?(session) ⇒ Boolean

Returns:

  • (Boolean)


75
76
77
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 75

def loaded_session?(session)
  !session.is_a?(Request::Session) || session.loaded?
end

#prepare_session(req) ⇒ Object



71
72
73
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 71

def prepare_session(req)
  Request::Session.create(self, req, @default_options)
end