Module: Jammit::Routes
- Defined in:
- lib/jammit-core/routes.rb
Class Method Summary collapse
-
.draw(map) ⇒ Object
Jammit uses a single route in order to slow down Rails’ routing speed by the absolute minimum.
Class Method Details
.draw(map) ⇒ Object
9 10 11 12 |
# File 'lib/jammit-core/routes.rb', line 9 def self.draw(map) map.jammit "/#{Jammit.package_path}/:package.:extension", :controller => 'jammit', :action => 'package' end |