search for: recognize_path_with_debug

Displaying 1 result from an estimated 1 matches for "recognize_path_with_debug".

2009 Nov 10
10
Un-recognised routes that do exist, using namespaces & subdomain checking
...mps when using RSpec even though both these are called pretty early on in route recognition. module Foo module RouteSetExtensions def self.included(base) base.alias_method_chain :extract_request_environment, :debug base.alias_method_chain :recognize_path, :debug end def recognize_path_with_debug(path, environment={}) puts path puts environment.to_yaml recognize_path_without_debug(path, environment) end def extract_request_environment_with_debug(request) env = extract_request_environment_without_debug(request) puts env.to_yaml env end end...