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)


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

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

#prepare_session(req) ⇒ Object



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

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