Skip to content

Commit

Permalink
ordered_options will work if inherited from Hash, remove OrderedHash …
Browse files Browse the repository at this point in the history
…usage
  • Loading branch information
Vishnu Atrai committed Feb 21, 2012
1 parent 12e2405 commit cd641fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions 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 = {}
Expand All @@ -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

Expand Down

0 comments on commit cd641fa

Please sign in to comment.