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

#commit_session(req, res) ⇒ Object



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

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

#loaded_session?(session) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#prepare_session(req) ⇒ Object



77
78
79
# File 'lib/action_dispatch/middleware/session/abstract_store.rb', line 77

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