aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/api/params_wrapper_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-07-15 15:15:25 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-07-15 15:15:25 -0300
commit4f21269c0aa1ea9991cf4864b40d9918ed6e8ba9 (patch)
tree3074c97f3e8583d88fe8c3fda93efc82a6cdb7c7 /actionpack/test/controller/api/params_wrapper_test.rb
parent64c1264419f766a306eba0418c1030b87489ea67 (diff)
parent84b861f1aae1b63525dcac99b3df2100b6739010 (diff)
downloadrails-4f21269c0aa1ea9991cf4864b40d9918ed6e8ba9.tar.gz
rails-4f21269c0aa1ea9991cf4864b40d9918ed6e8ba9.tar.bz2
rails-4f21269c0aa1ea9991cf4864b40d9918ed6e8ba9.zip
Merge pull request #20868 from sikachu/params-not-inherited-from-hwia
Make AC::Parameters not inherited from Hash
Diffstat (limited to 'actionpack/test/controller/api/params_wrapper_test.rb')
-rw-r--r--actionpack/test/controller/api/params_wrapper_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/api/params_wrapper_test.rb b/actionpack/test/controller/api/params_wrapper_test.rb
index e40a39d829..53b3a0c3cc 100644
--- a/actionpack/test/controller/api/params_wrapper_test.rb
+++ b/actionpack/test/controller/api/params_wrapper_test.rb
@@ -7,7 +7,7 @@ class ParamsWrapperForApiTest < ActionController::TestCase
wrap_parameters :person, format: [:json]
def test
- self.last_parameters = params.except(:controller, :action)
+ self.last_parameters = params.except(:controller, :action).to_unsafe_h
head :ok
end
end