Permalink
Browse files

module_eval is not necessary here

  • Loading branch information...
1 parent 345fc3b commit 06573a3a767963b5845af2850bab9e6a127e3374 @tenderlove tenderlove committed Jan 24, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 actionpack/lib/action_dispatch/routing/route_set.rb
View
4 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -127,9 +127,7 @@ def helper_names
def clear!
@helpers.each do |helper|
- @module.module_eval do
- remove_possible_method helper
- end
+ @module.remove_possible_method helper
end
@routes.clear

0 comments on commit 06573a3

Please sign in to comment.