Module: Lotus::Action::Session
- Defined in:
- lib/lotus/action/session.rb
Overview
Session API
This module isn’t included by default.
Constant Summary collapse
- SESSION_KEY =
The key that returns raw session from the Rack env
'rack.session'.freeze
Instance Method Summary collapse
-
#session ⇒ Hash
protected
Gets the session from the request and expose it as an Hash.
Instance Method Details
#session ⇒ Hash (protected)
Gets the session from the request and expose it as an Hash.
43 44 45 |
# File 'lib/lotus/action/session.rb', line 43 def session @_env[SESSION_KEY] ||= {} end |