diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-05-11 12:55:02 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-05-11 12:55:02 +0300 |
commit | 783b286ac0ca43033d7b64e360ca6f1aeeafc0d0 (patch) | |
tree | e6c3203568518a8b75779c01203807d3032485b1 /app/controllers/uploads_controller.rb | |
parent | 6fdc51f81d013a1e01c0742e81cdd0fa5476e2d6 (diff) |
Don't symbolize params.
Diffstat (limited to 'app/controllers/uploads_controller.rb')
-rw-r--r-- | app/controllers/uploads_controller.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb index 17edff68be2..28536e359e5 100644 --- a/app/controllers/uploads_controller.rb +++ b/app/controllers/uploads_controller.rb @@ -52,13 +52,13 @@ class UploadsController < ApplicationController def upload_model upload_models = { - user: User, - project: Project, - note: Note, - group: Group + "user" => User, + "project" => Project, + "note" => Note, + "group" => Group } - upload_models[params[:model].to_sym] + upload_models[params[:model]] end def upload_mount |