Module: ActionDispatch::Session::SessionObject

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#commit_session(req, res) ⇒ Object


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

def commit_session(req, res)
  req.commit_csrf_token
  super(req, res)
end

#loaded_session?(session) ⇒ Boolean

Returns:

  • (Boolean)

79
80
81
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 79

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

#prepare_session(req) ⇒ Object


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

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