Commit 95a470cf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'params-to-sym' into 'master'

Don't symbolize params.

See merge request !636
parents 881e11df 783b286a
......@@ -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