aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-24 12:48:39 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-02-24 13:55:37 +0530
commit5f59c10471fee7bca43f65bb2bc776ed047715b6 (patch)
treea396b7393481625ad9f50ed504a8455854e02988 /actionpack/CHANGELOG.md
parent22db455dbe9c26fe6d723cac0758705d9943ea4b (diff)
downloadrails-5f59c10471fee7bca43f65bb2bc776ed047715b6.tar.gz
rails-5f59c10471fee7bca43f65bb2bc776ed047715b6.tar.bz2
rails-5f59c10471fee7bca43f65bb2bc776ed047715b6.zip
Show permitted flag in the output of AC::Parameters#inspect
- Fixes #23822.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r--actionpack/CHANGELOG.md24
1 files changed, 20 insertions, 4 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index 4425a90798..cc336c0a02 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,4 +1,20 @@
-* Update session to have indifferent access across multiple requests
+* Show `permitted` flag in the output of ActionController::Parameters#inspect.
+
+ Before:
+ >> a = ActionController::Parameters.new(foo: 'bar')
+ => <ActionController::Parameters {"foo"=>"bar"}>
+
+ After:
+ >> a = ActionController::Parameters.new(foo: 'bar')
+ => <ActionController::Parameters {"foo"=>"bar"} permitted: false>
+ >> a.permit(:foo)
+ => <ActionController::Parameters {"foo"=>"bar"} permitted: true>
+
+ Fixes #23822.
+
+ *Prathamesh Sonpatki*
+
+* Update session to have indifferent access across multiple requests.
session[:deep][:hash] = "Magic"
@@ -46,13 +62,13 @@
end
end
```
-
+
Passing `as: :json` to integration test request helpers will set the format,
content type and encode the parameters as JSON.
-
+
Then on the response side, `parsed_body` will parse the body according to the
content type the response has.
-
+
Currently JSON is the only supported MIME type. Add your own with
`ActionDispatch::IntegrationTest.register_encoder`.