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',
options: base_layer_options.except('className', 'labels').merge(
'type' => 'Tiled',
'name' => "#{base_layer_options['name']} Labels",
**base_layer_options['labels']
)
'name' => "#{base_layer_options['name']} Labels"
).merge(base_layer_options['labels'])
)
end

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

Loading…
Cancel
Save