method

respond_to_missing?

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionView::TestCase::Behavior
respond_to_missing?(name, include_private = false) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/test_case.rb, line 436
      def respond_to_missing?(name, include_private = false)
        begin
          routes = defined?(@controller) && @controller.respond_to?(:_routes) && @controller._routes
        rescue
          # Don't call routes, if there is an error on _routes call
        end

        routes &&
          (routes.named_routes.route_defined?(name) ||
           routes.mounted_helpers.method_defined?(name))
      end
Register or log in to add new notes.