Don't symbolize params.

This commit is contained in:
Douwe Maan 2015-05-11 11:55:02 +02:00
parent 6fdc51f81d
commit 783b286ac0

View file

@ -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