Skip to content
This repository
Browse code

module_eval is not necessary here

  • Loading branch information...
commit 06573a3a767963b5845af2850bab9e6a127e3374 1 parent 345fc3b
Aaron Patterson authored January 24, 2013
4  actionpack/lib/action_dispatch/routing/route_set.rb
@@ -127,9 +127,7 @@ def helper_names
127 127
 
128 128
         def clear!
129 129
           @helpers.each do |helper|
130  
-            @module.module_eval do
131  
-              remove_possible_method helper
132  
-            end
  130
+            @module.remove_possible_method helper
133 131
           end
134 132
 
135 133
           @routes.clear

0 notes on commit 06573a3

Please sign in to comment.
Something went wrong with that request. Please try again.