Don't convert ActionController::Parameters to a hash

Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
Matt Rogers 2018-11-03 15:00:00 -05:00
parent 7fe0cf271a
commit 1eb892a473
No known key found for this signature in database
GPG key ID: 605D017C07EB4316

View file

@ -108,7 +108,7 @@ module Tracks
def normalize(attributes)
# make sure the hash keys are all symbols
Hash[attributes.map{|k,v| [k.to_sym,v]}]
attributes.transform_keys(&:to_sym)
end
def safe_attributes
@ -136,4 +136,4 @@ module Tracks
end
end
end