Module: Lotus::Action::RoutingHelpers
- Defined in:
- lib/lotus/action/routing_helpers.rb
Overview
Routing helper for full stack Lotus web applications.
For a given application called Web::Application
, at runtime Lotus creates a routes factory called Web::Routes
.
Included by default in every controller.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/lotus/action/routing_helpers.rb', line 27 def self.included(base) factory = "#{ Utils::String.new(base).namespace }::Routes" base.class_eval " private\n\n def routes\n \#{ factory }\n end\n END_EVAL\nend\n", __FILE__, __LINE__ |