Skip to content

Commit

Permalink
Move InheritableOptions into ActiveSupport
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlhuda committed Mar 3, 2010
1 parent bf9913f commit 6640903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 0 additions & 8 deletions actionpack/lib/action_controller/metal.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
require 'active_support/core_ext/class/attribute'
require 'active_support/ordered_options'

module ActiveSupport
class InheritableOptions < OrderedOptions
def initialize(parent)
super() { |h,k| parent[k] }
end
end
end

module ActionController
# ActionController::Metal provides a way to get a valid Rack application from a controller.
#
Expand Down
6 changes: 6 additions & 0 deletions activesupport/lib/active_support/ordered_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ def method_missing(name, *args)
end
end
end

class InheritableOptions < OrderedOptions
def initialize(parent)
super() { |h,k| parent[k] }
end
end
end

0 comments on commit 6640903

Please sign in to comment.