Method: Grape::Validations::Types::File.parse
- Defined in:
- lib/grape/validations/types/file.rb
.parse(input) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/grape/validations/types/file.rb', line 11 def parse(input) return if input.nil? return InvalidValue.new unless parsed?(input) # Processing of multipart file objects # is already taken care of by Rack::Request. # Nothing to do here. input end |