module ActionDispatch::Http::Upload

Private Instance Methods

normalize_parameters(value) click to toggle source

Convert nested Hash to HashWithIndifferentAccess and replace file upload hash with UploadedFile objects

Calls superclass method
# File lib/action_dispatch/http/upload.rb, line 37
def normalize_parameters(value)
  if Hash === value && value.has_key?(:tempfile)
    UploadedFile.new(value)
  else
    super
  end
end