diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-01-03 17:20:24 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-01-07 12:12:34 +0530 |
commit | a31078556a82ded9cb13c71727e146bb716a17ec (patch) | |
tree | 7a609e2e139c92d839ecc7249263f4201acc0ee4 /actionpack/CHANGELOG.md | |
parent | 3cae35bd6c46c7fb4b2daf09d1a8713feb74a0e3 (diff) | |
download | rails-a31078556a82ded9cb13c71727e146bb716a17ec.tar.gz rails-a31078556a82ded9cb13c71727e146bb716a17ec.tar.bz2 rails-a31078556a82ded9cb13c71727e146bb716a17ec.zip |
Allow AC::Parameters as an argument to url_helpers
- Earlier only Hash was allowed as params argument to url_helpers.
- Now ActionController::Parameters instances will also be allowed.
- If the params are not secured then it will raise an ArgumentError to
indicate that constructing URLs with non-secure params is not recommended.
- Fixes #22832.
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 39ac98fd63..0a5da2a94e 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,3 +1,11 @@ +* Allow `ActionController::Parameters` instances as an argument to URL + helper methods. An `ArguemntError` will be raised if the passed parameters + are not secure. + + Fixes #22832 + + *Prathamesh Sonpatki* + * Add option for per-form CSRF tokens. *Ben Toews* |