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 ...@@ -52,13 +52,13 @@ class UploadsController < ApplicationController
def upload_model def upload_model
upload_models = { upload_models = {
user: User, "user" => User,
project: Project, "project" => Project,
note: Note, "note" => Note,
group: Group "group" => Group
} }
upload_models[params[:model].to_sym] upload_models[params[:model]]
end end
def upload_mount 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