Remove unneccesary map chaining

This commit is contained in:
Guillermo Iguaran
2011-07-23 15:21:39 -05:00
parent abe61054af
commit 3fe32c3554

View File

@@ -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