diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-29 12:15:52 -0700 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-07-29 12:18:21 -0700 |
| commit | d7b726be00379a8e03e443425fba05341c6104cd (patch) | |
| tree | 16b17be43f649850d1c7c8cc0b55bf3cc7a859c7 | |
| parent | f889831ed65bea14b6b687bdaa4012d73d81b2a6 (diff) | |
| download | rails-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.rb | 2 |
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 |
