From d7b726be00379a8e03e443425fba05341c6104cd Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 29 Jul 2014 12:15:52 -0700 Subject: oops! :bomb: use helpers.include? so we don't get any false positives --- actionpack/lib/action_dispatch/routing/route_set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index c2583e2be6..d869b62398 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -95,7 +95,7 @@ module ActionDispatch end def route_defined?(name) - @module.method_defined? name + @helpers.include? name.to_sym end def helper_names -- cgit v1.2.3