From 877c133855c8f26f8f250103aba8c458a787d39b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 8 Jun 2015 17:23:14 -0700 Subject: we only care about methods that the request object responds to matches? should only deal with methods on the request object, so lets just filter out anything that the request object doesn't respond to --- actionpack/lib/action_dispatch/routing/route_set.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'actionpack/lib/action_dispatch/routing') diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index 1e950d13f8..49473ecd6f 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -564,8 +564,7 @@ module ActionDispatch end conditions.keep_if do |k, _| - k == :action || k == :controller || - request_class.public_method_defined?(k) || path_values.include?(k) + request_class.public_method_defined?(k) end end private :build_conditions -- cgit v1.2.3