Class: K8::Action

Inherits:
BaseAction show all
Defined in:
lib/keight.rb

Overview

Equivarent to Controller or RequestHandler in other framework.

Instance Attribute Summary

Attributes inherited from BaseAction

#req, #resp, #sess

Instance Method Summary collapse

Methods inherited from BaseAction

#handle_action

Constructor Details

#initialize(req, res) ⇒ Action

just for compatibility with other frameworks; use @sess!



775
776
777
778
779
# File 'lib/keight.rb', line 775

def initialize(req, res)
  super
  #; [!7sfyf] sets session object.
  @sess = req.env['rack.session']
end