Forgot to use _to_hash for non-array value

This commit is contained in:
xhh 2015-10-23 18:03:38 +08:00
parent 940e76f45f
commit dcec2e7b5d
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ module {{moduleName}}
if value.is_a?(Array)
hash[param] = value.compact.map{ |v| _to_hash(v) }
else
hash[param] = value
hash[param] = _to_hash(value)
end
end
hash

View File

@ -66,7 +66,7 @@ module Petstore
if value.is_a?(Array)
hash[param] = value.compact.map{ |v| _to_hash(v) }
else
hash[param] = value
hash[param] = _to_hash(value)
end
end
hash