aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-29 12:15:52 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-29 12:18:21 -0700
commitd7b726be00379a8e03e443425fba05341c6104cd (patch)
tree16b17be43f649850d1c7c8cc0b55bf3cc7a859c7
parentf889831ed65bea14b6b687bdaa4012d73d81b2a6 (diff)
downloadrails-d7b726be00379a8e03e443425fba05341c6104cd.tar.gz
rails-d7b726be00379a8e03e443425fba05341c6104cd.tar.bz2
rails-d7b726be00379a8e03e443425fba05341c6104cd.zip
oops! :bomb:
use helpers.include? so we don't get any false positives
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
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