aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-11-07 21:20:57 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-11-07 21:20:57 +0100
commitccdc84c09c618cc931e67da83873ad43f4ff8ff8 (patch)
treeead47836aa2e3f0738769545ffa4ef67da997715 /activesupport/CHANGELOG.md
parentcfd5b0007bfc0d6d25d81cd381c808d5ae6b2dd8 (diff)
parentc9143e15a1ba75137d6c9fe844d8b27dbc412835 (diff)
downloadrails-ccdc84c09c618cc931e67da83873ad43f4ff8ff8.tar.gz
rails-ccdc84c09c618cc931e67da83873ad43f4ff8ff8.tar.bz2
rails-ccdc84c09c618cc931e67da83873ad43f4ff8ff8.zip
Merge pull request #21897 from swaathi/master
Parameterize with options to preserve the case of string
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 7c0f3eae80..d505218c7a 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,12 @@
+* Updated `parameterize` to preserve the case of a string, optionally.
+
+ Example:
+
+ parameterize("Donald E. Knuth", separator: '_') # => "donald_e_knuth"
+ parameterize("Donald E. Knuth", preserve_case: true) # => "Donald-E-Knuth"
+
+ *Swaathi Kakarla*
+
* `HashWithIndifferentAccess.new` respects the default value or proc on objects
that respond to `#to_hash`. `.new_from_hash_copying_default` simply invokes `.new`.
All calls to `.new_from_hash_copying_default` are replaced with `.new`.