Don't symbolize params.

This commit is contained in:
Douwe Maan 2015-05-11 11:55:02 +02:00
parent 6fdc51f81d
commit 783b286ac0
1 changed files with 5 additions and 5 deletions

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