Module: ActionDispatch::Assertions::RoutingAssertions
- Defined in:
- lib/lazy_named_routes_helpers/routing_monkey_patches_rails_3_0.rb
Instance Method Summary collapse
-
#method_missing(selector, *args, &block) ⇒ Object
ROUTES TODO: These assertions should really work in an integration context.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(selector, *args, &block) ⇒ Object
ROUTES TODO: These assertions should really work in an integration context
110 111 112 113 114 115 116 |
# File 'lib/lazy_named_routes_helpers/routing_monkey_patches_rails_3_0.rb', line 110 def method_missing(selector, *args, &block) if @controller && @routes && @routes.named_routes.helper_method?(selector) @controller.__send__(selector, *args, &block) else super end end |