Permalink
Browse files

Add changelog entry for 42c3537 [ci skip]

  • Loading branch information...
ph3t committed Jul 3, 2018
1 parent cfc48d0 commit 54c2c6de1769570ecc13ddfb733e80e1086a21ef
Showing with 11 additions and 1 deletion.
  1. +11 −1 actionview/CHANGELOG.md
@@ -1,11 +1,21 @@
* Mark arrays of translations as trusted safe by using the `_html` suffix. Example:
en:
foo_html:
- "One"
- "<strong>Two</strong>"
- "Three &#128075; &#128578;"
*Juan Broullon*
* Add `year_format` option to date_select tag. This option makes it possible to customize year
names. Lambda should be passed to use this option.
Example:
date_select('user_birthday', '', start_year: 1998, end_year: 2000, year_format: ->year { "Heisei #{year - 1988}" })
The HTML produced:
The HTML produced:
<select id="user_birthday__1i" name="user_birthday[(1i)]">
<option value="1998">Heisei 10</option>

0 comments on commit 54c2c6d

Please sign in to comment.