diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-08-25 21:44:21 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-08-25 21:50:26 -0500 |
commit | f2d8d13c6495f2a9b3bbf3b50d869c0e5b25c207 (patch) | |
tree | 03154d7843617fe745a9316c6a010dc7944c5f0f /actionpack/lib/action_view/helpers | |
parent | ba0d621695c372464383b56d2f33a7b892ed6aa5 (diff) | |
download | rails-f2d8d13c6495f2a9b3bbf3b50d869c0e5b25c207.tar.gz rails-f2d8d13c6495f2a9b3bbf3b50d869c0e5b25c207.tar.bz2 rails-f2d8d13c6495f2a9b3bbf3b50d869c0e5b25c207.zip |
Performance: Cache modules that extend the view context for JavaScriptGenerator
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 4c3a8311a5..09dbb67c0a 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -588,9 +588,7 @@ module ActionView private def include_helpers_from_context - @context.extended_by.each do |mod| - extend mod unless mod.name =~ /^ActionView::Helpers/ - end + @context.send(:extended_by_without_helpers).each { |mod| extend mod } extend GeneratorMethods end |