From 3fe32c355453f517acfda48a87edf2d6928a381a Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Sat, 23 Jul 2011 15:21:39 -0500 Subject: Remove unneccesary map chaining --- activesupport/lib/active_support/ordered_hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport') 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 -- cgit v1.2.3