Avoid using splat (only works with symbolized hashes

pull/13644/head
Javier Torres 7 years ago
parent eae7cc57d1
commit b702c1fc22

@ -18,9 +18,8 @@ module Carto
kind: 'tiled', kind: 'tiled',
options: base_layer_options.except('className', 'labels').merge( options: base_layer_options.except('className', 'labels').merge(
'type' => 'Tiled', 'type' => 'Tiled',
'name' => "#{base_layer_options['name']} Labels", 'name' => "#{base_layer_options['name']} Labels"
**base_layer_options['labels'] ).merge(base_layer_options['labels'])
)
) )
end end

@ -47,9 +47,8 @@ module ModelFactories
kind: 'tiled', kind: 'tiled',
options: base_layer.options.except('className', 'labels').merge( options: base_layer.options.except('className', 'labels').merge(
'type' => 'Tiled', 'type' => 'Tiled',
'name' => "#{base_layer.options['name']} Labels", 'name' => "#{base_layer.options['name']} Labels"
**base_layer.options['labels'] ).merge(base_layer.options['labels'])
)
) )
end end

Loading…
Cancel
Save