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