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

Don't symbolize params.

parent 6fdc51f8
......@@ -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
......
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