mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Don't convert ActionController::Parameters to a hash
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
7fe0cf271a
commit
1eb892a473
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue