diff options
author | Maksym Pugach <pugach.m@gmail.com> | 2017-01-02 18:26:05 +0200 |
---|---|---|
committer | Maksym Pugach <pugach.m@gmail.com> | 2017-01-04 06:33:29 +0200 |
commit | 13352f6972b4dbc9af33b0634a26184f1c4eb2c1 (patch) | |
tree | 9ceec3b4527fad1d571bde65a0a97bc7168f5d71 /actionview/CHANGELOG.md | |
parent | 33e60514aed85b3076f2636d5f1ccfb513aace1c (diff) | |
download | rails-13352f6972b4dbc9af33b0634a26184f1c4eb2c1.tar.gz rails-13352f6972b4dbc9af33b0634a26184f1c4eb2c1.tar.bz2 rails-13352f6972b4dbc9af33b0634a26184f1c4eb2c1.zip |
Add `check_parameters` option to `current_page?`
Example:
For "http://www.example.com/shop/checkout?order=desc&page=1"
current_page?('http://www.example.com/shop/checkout')
=> true
current_page?(
'http://www.example.com/shop/checkout',
check_parameters: true
)
=> false
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r-- | actionview/CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md index 2a38ca7b63..59afed1f98 100644 --- a/actionview/CHANGELOG.md +++ b/actionview/CHANGELOG.md @@ -1,3 +1,7 @@ +* Add `check_parameters` option to `current_page?` which makes it more strict. + + *Maksym Pugach* + * Return correct object name in form helper method after `fields_for`. Fixes #26931. |