diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-29 14:37:52 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-29 14:38:02 -0800 |
commit | 87dd62ab2e4a426011392f41090006428fd01e3c (patch) | |
tree | 8e538f44192284a12999b14ddd44d063a156eaab /actionpack | |
parent | cd97d0b5b73d12a8a6c4d202782d8542a3738e3b (diff) | |
download | rails-87dd62ab2e4a426011392f41090006428fd01e3c.tar.gz rails-87dd62ab2e4a426011392f41090006428fd01e3c.tar.bz2 rails-87dd62ab2e4a426011392f41090006428fd01e3c.zip |
stop using __send__ and just module eval in the extensions
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/route_set.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb index ee61d421b0..c60e26983d 100644 --- a/actionpack/lib/action_dispatch/routing/route_set.rb +++ b/actionpack/lib/action_dispatch/routing/route_set.rb @@ -124,9 +124,8 @@ module ActionDispatch 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 |