aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-07-17 04:14:12 -0300
committerGitHub <noreply@github.com>2016-07-17 04:14:12 -0300
commitbad3a120f1690f393d8f6204b3ceee60f0ce707b (patch)
tree9b41da100694e335446f3f2ca5bfcd33cfb5ed65 /activesupport/CHANGELOG.md
parent2384317465ccb1dfca456a2b7798714b99f32711 (diff)
parentb937c24edc21ba1b2cb0d6e64d2ccddcad2a7a12 (diff)
downloadrails-bad3a120f1690f393d8f6204b3ceee60f0ce707b.tar.gz
rails-bad3a120f1690f393d8f6204b3ceee60f0ce707b.tar.bz2
rails-bad3a120f1690f393d8f6204b3ceee60f0ce707b.zip
Merge pull request #25811 from oss92/to_sentence_fallback_string
Added :fallback_string option to Array#to_sentence
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index a8d875640e..6103857a41 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,9 @@
+* Add `:fallback_string` option to `Array#to_sentence`. If an empty array
+ calls the function and a fallback string option is set then it returns the
+ fallback string other than an empty string.
+
+ *Mohamed Osama*
+
* Fix `ActiveSupport::TimeZone#strptime`. Now raises `ArgumentError` when the
given time doesn't match the format. The error is the same as the one given
by Ruby's `Date.strptime`. Previously it raised