aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/assertions
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-11 22:21:14 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-04-18 17:33:25 -0400
commit29333ddb69e69d0fa99a66bf5fab333e8c5611aa (patch)
tree02123cb8db76390151f057b4fa85fa73a832b059 /actionpack/test/assertions
parentaf878151dbf93fae647ec682d96c0caaeb9a81f1 (diff)
downloadrails-29333ddb69e69d0fa99a66bf5fab333e8c5611aa.tar.gz
rails-29333ddb69e69d0fa99a66bf5fab333e8c5611aa.tar.bz2
rails-29333ddb69e69d0fa99a66bf5fab333e8c5611aa.zip
Implement ActionController::Parameters#to_query and #to_param
Previously it was raising an error because it may be unsafe to use those methods in a unpermitted parameter. Now we delegate to to_h that already raise an error when the Parameters instance is not permitted. This also fix a bug when using `#to_query` in a hash that contains a `ActionController::Parameters` instance and was returning the name of the class in the string.
Diffstat (limited to 'actionpack/test/assertions')
0 files changed, 0 insertions, 0 deletions