tpkg / client

tpkg client code
MIT License
5 stars 7 forks source link

Makes sure we don't overwrite ActionController::Parameters.dup() #50

Closed atclate closed 8 years ago

atclate commented 8 years ago

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.