Don't symbolize params.
This commit is contained in:
parent
6fdc51f81d
commit
783b286ac0
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue