Module: Utopia::Controller
- Defined in:
- lib/utopia/controller/middleware.rb,
lib/utopia/controller.rb,
lib/utopia/controller/base.rb,
lib/utopia/controller/result.rb,
lib/utopia/controller/actions.rb,
lib/utopia/controller/respond.rb,
lib/utopia/controller/rewrite.rb,
lib/utopia/controller/responder.rb,
lib/utopia/controller/variables.rb
Overview
A middleware which loads controller classes and invokes functionality based on the requested path.
Defined Under Namespace
Modules: Actions, Handlers, Respond, Rewrite Classes: Base, Middleware, Responder, Result, Variables
Class Method Summary collapse
-
.[](request) ⇒ Object
Return the controller variables associated with the request.
-
.new ⇒ Object
Construct controller middleware.
Class Method Details
.[](request) ⇒ Object
Return the controller variables associated with the request.
79 80 81 |
# File 'lib/utopia/controller/variables.rb', line 79 def self.[] request request.variables end |
.new ⇒ Object
Construct controller middleware.
12 13 14 |
# File 'lib/utopia/controller.rb', line 12 def self.new(...) Middleware.new(...) end |