Skip to content
Snippets Groups Projects
Commit 783b286a authored by Douwe Maan's avatar Douwe Maan
Browse files

Don't symbolize params.

parent 6fdc51f8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment