aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2012-02-21 23:08:36 +0530
committerVishnu Atrai <me@vishnuatrai.com>2012-02-21 23:08:36 +0530
commitcd641fa96efba71efddae0c055ae2a76aaac6a43 (patch)
treea2830e0413a1490c47d4f7ec9daf000d71d0aa85 /activesupport
parent12e2405a276e783791c34432272f22ad3517a140 (diff)
downloadrails-cd641fa96efba71efddae0c055ae2a76aaac6a43.tar.gz
rails-cd641fa96efba71efddae0c055ae2a76aaac6a43.tar.bz2
rails-cd641fa96efba71efddae0c055ae2a76aaac6a43.zip
ordered_options will work if inherited from Hash, remove OrderedHash usage
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/ordered_options.rb4
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