Module: ActionDispatch::Session::SessionObject

Included in:
AbstractStore, CookieStore, 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)


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

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

#prepare_session(env) ⇒ Object



68
69
70
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 68

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