Module: Fiveruns::Tuneup::Routing
- Defined in:
- lib/fiveruns/tuneup/routing.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/fiveruns/tuneup/routing.rb', line 9 def self.included(base) base.alias_method_chain :draw, :fiveruns_tuneup end |
.install ⇒ Object
5 6 7 |
# File 'lib/fiveruns/tuneup/routing.rb', line 5 def self.install ActionController::Routing::RouteSet.send(:include, self) end |
Instance Method Details
#draw_with_fiveruns_tuneup(*args, &block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fiveruns/tuneup/routing.rb', line 12 def draw_with_fiveruns_tuneup(*args, &block) draw_without_fiveruns_tuneup(*args) do |map| map.connect '/tuneup', :controller => 'tuneup', :action => 'show' map.connect '/tuneup/:action', :controller => 'tuneup' yield map end end |