Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2017-08-16 19:06:59 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2017-08-16 23:06:31 +0300
commitdc8e1676cda528cfca9ec9679da10ff90ec76282 (patch)
tree72e2f128c7c72d5bf9d600aa91cd036a33d9fac9 /lib/api/helpers.rb
parent374cdda3c0072218126f717f85f321b566a3262f (diff)
Upgrade grape to 1.0
Main feature was the deprication of the Hashie stuff, so the access by calling keys as method is gone now.
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 3582ed81b0f..b56fd2388b3 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -290,7 +290,7 @@ module API
def uploaded_file(field, uploads_path)
if params[field]
- bad_request!("#{field} is not a file") unless params[field].respond_to?(:filename)
+ bad_request!("#{field} is not a file") unless params[field][:filename]
return params[field]
end