Class: Umlaut::Routes
- Inherits:
-
Object
- Object
- Umlaut::Routes
- Includes:
- RouteSets
- Defined in:
- lib/umlaut/routes.rb
Overview
Class to inject Umlaut routes, design copied from Blacklight project. you would do a:
Umlaut::Routes.new(self, optional_args).draw
in local app routes.rb, that line is generated into local app by Umlaut generator. options include :only and :except to limit what route groups are generated.
Defined Under Namespace
Modules: RouteSets
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(router, options = {}) ⇒ Routes
constructor
A new instance of Routes.
Methods included from RouteSets
#a_z, #admin, #export_email, #feedback, #javascript, #link_router, #open_search, #permalinks, #resolve, #resources, #root, #search
Constructor Details
#initialize(router, options = {}) ⇒ Routes
Returns a new instance of Routes.
11 12 13 14 |
# File 'lib/umlaut/routes.rb', line 11 def initialize(router, ={}) @router = router = end |
Instance Method Details
#draw ⇒ Object
16 17 18 19 20 |
# File 'lib/umlaut/routes.rb', line 16 def draw route_sets.each do |r| self.send(r) end end |