Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/divert.rb
Instance Method Summary collapse
Instance Method Details
#divert_with(controller) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/divert.rb', line 44 def divert_with controller # Set controller in configuration if not already set Divert.configuration.controller ||= controller.to_s get ':action' => controller.to_s get '*path' => "#{controller}#action_missing", :format => false end |