Commit 783b286a authored by Douwe Maan's avatar Douwe Maan

Don't symbolize params.

parent 6fdc51f8
...@@ -52,13 +52,13 @@ class UploadsController < ApplicationController ...@@ -52,13 +52,13 @@ class UploadsController < ApplicationController
def upload_model def upload_model
upload_models = { upload_models = {
user: User, "user" => User,
project: Project, "project" => Project,
note: Note, "note" => Note,
group: Group "group" => Group
} }
upload_models[params[:model].to_sym] upload_models[params[:model]]
end end
def upload_mount def upload_mount
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment