ordered_options will work if inherited from Hash, remove OrderedHash usage
This commit is contained in:
parent
12e2405a27
commit
cd641fa96e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user