Skip to content

Commit

Permalink
Tweak how ActionPack handles InheritableOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Lerche committed Mar 4, 2010
1 parent 15b3b74 commit 7dbf5c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions actionpack/lib/abstract_controller/base.rb
@@ -1,3 +1,5 @@
require 'active_support/ordered_options'

module AbstractController
class Error < StandardError; end
class ActionNotFound < StandardError; end
Expand Down
1 change: 0 additions & 1 deletion actionpack/lib/action_controller/metal.rb
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/base.rb
Expand Up @@ -297,7 +297,7 @@ def initialize(view_paths = [], assigns_for_first_render = {}, controller = nil,
@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
Expand Down

0 comments on commit 7dbf5c8

Please sign in to comment.