aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-02-15 10:27:15 +0100
committerXavier Noria <fxn@hashref.com>2014-02-15 10:27:15 +0100
commit5f295aebdbb15e2000cef5c9b8a2e28c5cc3db1b (patch)
treee33ec379e6f66de814d7601174f81f93bcc9ba68 /actionview/CHANGELOG.md
parentbfc776f7bb114e90cf91f16f5892be636ed2f0c8 (diff)
downloadrails-5f295aebdbb15e2000cef5c9b8a2e28c5cc3db1b.tar.gz
rails-5f295aebdbb15e2000cef5c9b8a2e28c5cc3db1b.tar.bz2
rails-5f295aebdbb15e2000cef5c9b8a2e28c5cc3db1b.zip
implements new option :month_format_string for date select helpers [Closes #13618]
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r--actionview/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 30dbc20f18..a0f298a6b1 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,17 @@
+* Date select helpers accept a format string for the months selector via the
+ new option `:month_format_string`.
+
+ When rendered, the format string gets passed keys `:number` (integer), and
+ `:name` (string), in order to be able to interpolate them as in
+
+ '%{name} (%<number>02d)'
+
+ for example.
+
+ This option is motivated by #13618.
+
+ *Xavier Noria*
+
* Added `config.action_view.raise_on_missing_translations` to define whether an
error should be raised for missing translations.