You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.
This is because ActionController::Parameters#merge duplicates the entire object via self.dup.update, while #reverse_merge calls ActiveSupport::HashWithIndifferentAccess#reverse_merge which only copies the values of the other hash:
ActionController::Parameters is going to not inherit from Hash in future versions. When this happen reverse_merge will be not even defined on it (and neither it should be)
Calling
#reverse_merge
on anActionController::Parameters
object sets the#permitted
value tofalse
. For example:This is because
ActionController::Parameters#merge
duplicates the entire object viaself.dup.update
, while#reverse_merge
callsActiveSupport::HashWithIndifferentAccess#reverse_merge
which only copies the values of the other hash:cc: @nickhoffman
The text was updated successfully, but these errors were encountered: