mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Remove unneccesary map chaining
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user