Makes sure we don't overwrite ActionController::Parameters.dup() defined by ActionPack library.
Bug was introduced when Rails 4.0 introduced a permitted? function to ActionController::Parameters with Strong Parameters, and Rails 4.1 started using it on Parameters duplicated using the dup() method, resulting in a MethodNotFound exception. This fix makes sure we don't overwrite the dup() method just because Parameters includes HashWithIndifferentAccess.
Makes sure we don't overwrite ActionController::Parameters.dup() defined by ActionPack library. Bug was introduced when Rails 4.0 introduced a permitted? function to ActionController::Parameters with Strong Parameters, and Rails 4.1 started using it on Parameters duplicated using the dup() method, resulting in a MethodNotFound exception. This fix makes sure we don't overwrite the dup() method just because Parameters includes HashWithIndifferentAccess.