Permalink
Browse files

oops! 💣

use helpers.include? so we don't get any false positives
  • Loading branch information...
1 parent f889831 commit d7b726be00379a8e03e443425fba05341c6104cd @tenderlove tenderlove committed Jul 29, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -95,7 +95,7 @@ def initialize
end
def route_defined?(name)
- @module.method_defined? name
+ @helpers.include? name.to_sym
end
def helper_names

0 comments on commit d7b726b

Please sign in to comment.