From cd641fa96efba71efddae0c055ae2a76aaac6a43 Mon Sep 17 00:00:00 2001 From: Vishnu Atrai Date: Tue, 21 Feb 2012 23:08:36 +0530 Subject: ordered_options will work if inherited from Hash, remove OrderedHash usage --- activesupport/lib/active_support/ordered_options.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/ordered_options.rb b/activesupport/lib/active_support/ordered_options.rb index 9e5a5d0246..538e41e0eb 100644 --- a/activesupport/lib/active_support/ordered_options.rb +++ b/activesupport/lib/active_support/ordered_options.rb @@ -1,5 +1,3 @@ -require 'active_support/ordered_hash' - # Usually key value pairs are handled something like this: # # h = {} @@ -17,7 +15,7 @@ require 'active_support/ordered_hash' # h.girl # => 'Mary' # module ActiveSupport #:nodoc: - class OrderedOptions < OrderedHash + class OrderedOptions < Hash alias_method :_get, :[] # preserve the original #[] method protected :_get # make it protected -- cgit v1.2.3