Permalink
Browse files

stop using __send__ and just module eval in the extensions

  • Loading branch information...
tenderlove committed Dec 29, 2011
1 parent cd97d0b commit 87dd62ab2e4a426011392f41090006428fd01e3c
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -124,9 +124,8 @@ def length
end
def install(destinations = [ActionController::Base, ActionView::Base])
- destinations.each do |dest|
- dest.__send__(:include, @module)
- end
+ helper = @module
+ destinations.each { |d| d.module_eval { include helper } }
end
private

0 comments on commit 87dd62a

Please sign in to comment.