aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-02 17:18:01 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-03 15:49:52 -0800
commit664090348154ccbf1274a13bbc3d3c37ba35bc7d (patch)
tree0a92ab44f22737982830bb37572cde6d23722a89 /activesupport/lib/active_support
parentbf9913f8f43a2436c644ad893d3d7034f7d7e256 (diff)
downloadrails-664090348154ccbf1274a13bbc3d3c37ba35bc7d.tar.gz
rails-664090348154ccbf1274a13bbc3d3c37ba35bc7d.tar.bz2
rails-664090348154ccbf1274a13bbc3d3c37ba35bc7d.zip
Move InheritableOptions into ActiveSupport
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/ordered_options.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb
index 596a7b757d..61ccb79211 100644
--- a/activesupport/lib/active_support/ordered_options.rb
+++ b/activesupport/lib/active_support/ordered_options.rb
@@ -18,4 +18,10 @@ module ActiveSupport #:nodoc:
end
end
end
+
+ class InheritableOptions < OrderedOptions
+ def initialize(parent)
+ super() { |h,k| parent[k] }
+ end
+ end
end