summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/uploads_actions.rb
diff options
context:
space:
mode:
authorMicaël Bergeron <mbergeron@gitlab.com>2018-01-29 16:06:17 -0500
committerMicaël Bergeron <mbergeron@gitlab.com>2018-02-02 09:28:15 -0500
commit74ddc80590053b04b90c35ae3e1f46bfbd9d0d15 (patch)
tree145eaf19ac0a06a7bb8e5a0d85b97606ccaf77eb /app/controllers/concerns/uploads_actions.rb
parent54a575f1bbba44573ab92dc58a4242f1ee734c5d (diff)
downloadgitlab-ce-74ddc80590053b04b90c35ae3e1f46bfbd9d0d15.tar.gz
add the uploader context to the upload model
Diffstat (limited to 'app/controllers/concerns/uploads_actions.rb')
-rw-r--r--app/controllers/concerns/uploads_actions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/uploads_actions.rb b/app/controllers/concerns/uploads_actions.rb
index 61554029d09..7ad79a1e56c 100644
--- a/app/controllers/concerns/uploads_actions.rb
+++ b/app/controllers/concerns/uploads_actions.rb
@@ -70,7 +70,7 @@ module UploadsActions
end
def build_uploader_from_params
- uploader = uploader_class.new(model, params[:secret])
+ uploader = uploader_class.new(model, secret: params[:secret])
uploader.retrieve_from_store!(params[:filename])
uploader
end