ActionController::Params.to_hash is deprecated and will be removed in rails 5.1
Closed this issue · 5 comments
halogenandtoast commented
halogenandtoast commented
Should just need to change to to_h
derekprior commented
This would break out of the mass assignment security provided by
ActionController::Params. What's the reason to call `to_hash` there in the
first place?
halogenandtoast commented
@derekprior The original reason was to get the additional values (like username) that Monban doesn't know about, to_h
doesn't break out of mass assignment security in rails 5. See http://edgeapi.rubyonrails.org/classes/ActionController/Parameters.html#method-i-to_h
halogenandtoast commented
This is the case for rails 4 as well so I'm going to issue this fix immediately.
halogenandtoast commented
@derekprior care to look at #45