Module: Radiant::RoutingExtension
- Defined in:
- lib/plugins/extension_patches/lib/routing_extension.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/plugins/extension_patches/lib/routing_extension.rb', line 4 def self.included(base) base.class_eval do alias :draw_without_plugin_routes :draw alias :draw :draw_with_plugin_routes end end |
Instance Method Details
#draw_with_plugin_routes ⇒ Object
11 12 13 14 15 16 |
# File 'lib/plugins/extension_patches/lib/routing_extension.rb', line 11 def draw_with_plugin_routes draw_without_plugin_routes do |mapper| add_extension_routes(mapper) yield mapper end end |