method
multipart_requestify
v2.1.0 -
Show latest stable
- Class:
ActionController::Integration::Session
multipart_requestify(params, first=true)private
No documentation available.
# File actionpack/lib/action_controller/integration.rb, line 368
def multipart_requestify(params, first=true)
returning Hash.new do |p|
params.each do |key, value|
k = first ? CGI.escape(key.to_s) : "[#{CGI.escape(key.to_s)}]"
if Hash === value
multipart_requestify(value, false).each do |subkey, subvalue|
p[k + subkey] = subvalue
end
else
p[k] = value
end
end
end
end