aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-07-23 15:21:39 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-07-23 15:21:39 -0500
commit3fe32c355453f517acfda48a87edf2d6928a381a (patch)
treedf719eb6e9bd7e14ef37b10a52107ddfef35da49
parentabe61054af9aaceb546adfd629c50a027862a521 (diff)
downloadrails-3fe32c355453f517acfda48a87edf2d6928a381a.tar.gz
rails-3fe32c355453f517acfda48a87edf2d6928a381a.tar.bz2
rails-3fe32c355453f517acfda48a87edf2d6928a381a.zip
Remove unneccesary map chaining
-rw-r--r--activesupport/lib/active_support/ordered_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/ordered_hash.rb b/activesupport/lib/active_support/ordered_hash.rb
index 68f4bd66da..7f70628933 100644
--- a/activesupport/lib/active_support/ordered_hash.rb
+++ b/activesupport/lib/active_support/ordered_hash.rb
@@ -6,7 +6,7 @@ end
require 'yaml'
YAML.add_builtin_type("omap") do |type, val|
- ActiveSupport::OrderedHash[val.map(&:to_a).map(&:first)]
+ ActiveSupport::OrderedHash[val.map{ |v| v.to_a.first }]
end
module ActiveSupport