Module: Hanami::Action::Session

Defined in:
lib/hanami/action/session.rb

Overview

Session support for actions.

Not included by default; you should include this module manually to enable session support. For actions within an Hanami app, this module will be included automatically if sessions are configured in the app config.

Since:

  • 0.1.0

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.1.0



16
17
18
19
20
# File 'lib/hanami/action/session.rb', line 16

def self.included(base)
  base.class_eval do
    before { |req, _| req.id }
  end
end