Module: ActionDispatch::Session::SessionObject

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#loaded_session?(session) ⇒ Boolean

Returns:

  • (Boolean)

85
86
87
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 85

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

#prepare_session(req) ⇒ Object


81
82
83
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 81

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