Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5118 from castlerock/ordered_options_from_hash

ordered_options will work if inherited from Hash, remove OrderedHash usage
  • Loading branch information...
commit 349d5a686af31bc46056c040b9d41a6aa4f03203 2 parents 19c7124 + cd641fa
@spastorino spastorino authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 activesupport/lib/active_support/ordered_options.rb
View
4 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 @@
# h.girl # => 'Mary'
#
module ActiveSupport #:nodoc:
- class OrderedOptions < OrderedHash
+ class OrderedOptions < Hash
alias_method :_get, :[] # preserve the original #[] method
protected :_get # make it protected
Please sign in to comment.
Something went wrong with that request. Please try again.