Tweak how ActionPack handles InheritableOptions

This commit is contained in:
Carl Lerche 2010-03-03 21:29:26 -08:00
parent 15b3b74624
commit 7dbf5c820b
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,5 @@
require 'active_support/ordered_options'
module AbstractController
class Error < StandardError; end
class ActionNotFound < StandardError; end

View File

@ -1,5 +1,4 @@
require 'active_support/core_ext/class/attribute'
require 'active_support/ordered_options'
module ActionController
# ActionController::Metal provides a way to get a valid Rack application from a controller.

View File

@ -297,7 +297,7 @@ module ActionView #:nodoc:
@helpers = self.class.helpers || Module.new
@_controller = controller
@_config = controller.config if controller
@_config = ActiveSupport::InheritableOptions.new(controller.config) if controller
@_content_for = Hash.new {|h,k| h[k] = ActiveSupport::SafeBuffer.new }
@_virtual_path = nil
self.view_paths = view_paths