From 1422d39c488c1790cd9ebc43ee21474835159b36 Mon Sep 17 00:00:00 2001 From: Ben Orenstein Date: Sun, 27 Feb 2011 20:27:13 -0500 Subject: [PATCH] to_sym is already being called on key. --- .../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 124e1a7..360504c 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 = ActiveSupport::OrderedOptions.new @@ -31,7 +29,7 @@ module ActiveSupport #:nodoc: def method_missing(name, *args) if name.to_s =~ /(.*)=$/ - self[$1.to_sym] = args.first + self[$1] = args.first else self[name] end -- 1.7.3.2