aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorthedarkone <thedarkone2@gmail.com>2010-09-27 14:50:39 +0200
committerthedarkone <thedarkone2@gmail.com>2010-09-27 17:45:58 +0200
commit918dc27345319fbabf25a43bd65b613878b3a66e (patch)
tree9384f88171b155ac6655d70c2448e4e8a364fe32 /actionpack/lib/action_view/base.rb
parent7918a5c96604b6c2d8a60542b7afc9e445c43fba (diff)
downloadrails-918dc27345319fbabf25a43bd65b613878b3a66e.tar.gz
rails-918dc27345319fbabf25a43bd65b613878b3a66e.tar.bz2
rails-918dc27345319fbabf25a43bd65b613878b3a66e.zip
Compile ActionController::Base.config's methods to avoid method_missing overhead.
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 3fa46d0f43..0bef3e3a08 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -209,8 +209,7 @@ module ActionView #:nodoc:
@_request = controller.request if controller.respond_to?(:request)
end
- config = controller && controller.respond_to?(:config) ? controller.config : {}
- @_config = ActiveSupport::InheritableOptions.new(config)
+ @_config = controller && controller.respond_to?(:config) ? controller.config.inheritable_copy : {}
@_content_for = Hash.new { |h,k| h[k] = ActiveSupport::SafeBuffer.new }
@_virtual_path = nil