diff options
author | Vishnu Atrai <me@vishnuatrai.com> | 2012-02-21 23:08:36 +0530 |
---|---|---|
committer | Vishnu Atrai <me@vishnuatrai.com> | 2012-02-21 23:08:36 +0530 |
commit | cd641fa96efba71efddae0c055ae2a76aaac6a43 (patch) | |
tree | a2830e0413a1490c47d4f7ec9daf000d71d0aa85 | |
parent | 12e2405a276e783791c34432272f22ad3517a140 (diff) | |
download | rails-cd641fa96efba71efddae0c055ae2a76aaac6a43.tar.gz rails-cd641fa96efba71efddae0c055ae2a76aaac6a43.tar.bz2 rails-cd641fa96efba71efddae0c055ae2a76aaac6a43.zip |
ordered_options will work if inherited from Hash, remove OrderedHash usage
-rw-r--r-- | activesupport/lib/active_support/ordered_options.rb | 4 |
1 files changed, 1 insertions, 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 |