aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorMaksym Pugach <pugach.m@gmail.com>2017-01-02 18:26:05 +0200
committerMaksym Pugach <pugach.m@gmail.com>2017-01-04 06:33:29 +0200
commit13352f6972b4dbc9af33b0634a26184f1c4eb2c1 (patch)
tree9ceec3b4527fad1d571bde65a0a97bc7168f5d71 /actionview/CHANGELOG.md
parent33e60514aed85b3076f2636d5f1ccfb513aace1c (diff)
downloadrails-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.md4
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.