diff options
Diffstat (limited to 'lib/api/validations/types/workhorse_file.rb')
-rw-r--r-- | lib/api/validations/types/workhorse_file.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/validations/types/workhorse_file.rb b/lib/api/validations/types/workhorse_file.rb index e65e94fc8db..23f402596d5 100644 --- a/lib/api/validations/types/workhorse_file.rb +++ b/lib/api/validations/types/workhorse_file.rb @@ -5,6 +5,7 @@ module API module Types class WorkhorseFile def self.parse(value) + return if value.blank? raise "#{value.class} is not an UploadedFile type" unless parsed?(value) value |