lib/locomotive/coal/resources/concerns/request.rb in locomotivecms_coal-1.0.0.pre.beta.2 vs lib/locomotive/coal/resources/concerns/request.rb in locomotivecms_coal-1.0.0.rc1
- old
+ new
@@ -111,10 +111,10 @@
# [{ name: 'a' }, { name: 'b' }] => { 0 => { name: 'a' }, 1 => { name: 'b' } }
def encode_array_to_hash(value)
{}.tap do |hash|
value.each_with_index do |v, index|
- hash[index] = v.to_hash
+ hash[index] = _encode_parameters(v)
end
end
end
end