Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/router-visualizer/mapper.rb
Instance Method Summary collapse
Instance Method Details
#visualize(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/router-visualizer/mapper.rb', line 6 def visualize( = {}) groups = .delete(:groups) { ['development'] } at = .delete(:at) { '/routes' } if matching_group? groups mount RouterVisualizer::Engine, at: at end self end |