Global namespaces for ruby basic types (#6418)

File here will be overriden by generated class File of swagger.yml containse the definition named File. Using global namespace can fix it
This commit is contained in:
Gleb Sinyavsky 2017-09-01 17:56:47 +03:00 committed by wing328
parent 5c62ba182e
commit 070894dc95

View File

@ -274,7 +274,7 @@ module {{moduleName}}
data = {}
form_params.each do |key, value|
case value
when File, Array, nil
when ::File, ::Array, nil
# let typhoeus handle File, Array and nil parameters
data[key] = value
else