diff options
author | Prem Sichanugrist <s@sikac.hu> | 2015-07-13 16:43:21 -0400 |
---|---|---|
committer | Prem Sichanugrist <s@sikac.hu> | 2015-07-15 11:11:36 -0400 |
commit | 14a3bd520dd4bbf1247fd3e0071b59c02c115ce0 (patch) | |
tree | 23d5f059a39e699aa0762fcea54fd33cd7952bdd /actionpack/test/dispatch/request | |
parent | a0b4dc21a2188a4379bc401b73336608fec56c64 (diff) | |
download | rails-14a3bd520dd4bbf1247fd3e0071b59c02c115ce0.tar.gz rails-14a3bd520dd4bbf1247fd3e0071b59c02c115ce0.tar.bz2 rails-14a3bd520dd4bbf1247fd3e0071b59c02c115ce0.zip |
Make AC::Parameters not inherited from Hash
This is another take at #14384 as we decided to wait until `master` is
targeting Rails 5.0. This commit is implementation-complete, as it
guarantees that all the public methods on the hash-inherited Parameters
are still working (based on test case). We can decide to follow-up later
if we want to remove some methods out from Parameters.
Diffstat (limited to 'actionpack/test/dispatch/request')
-rw-r--r-- | actionpack/test/dispatch/request/json_params_parsing_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/request/json_params_parsing_test.rb b/actionpack/test/dispatch/request/json_params_parsing_test.rb index d77341bc64..c2300a0142 100644 --- a/actionpack/test/dispatch/request/json_params_parsing_test.rb +++ b/actionpack/test/dispatch/request/json_params_parsing_test.rb @@ -113,7 +113,7 @@ class RootLessJSONParamsParsingTest < ActionDispatch::IntegrationTest def parse self.class.last_request_parameters = request.request_parameters - self.class.last_parameters = params + self.class.last_parameters = params.to_unsafe_h head :ok end end |