なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2018/06/21)

2018/06/21分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

actionview/CHANGELOG.md


add documentation for config.active_support.use_authenticated_message_encryption [ci skip]

rails guideのConfiguring Rails Applicationsの修正です。

config.active_support.use_authenticated_message_encryptionについての説明を追加しています。


Merge pull request #33175 from gsamokovarov/fix-actionpack-typo

actionpack/CHANGELOG.mdの修正です。

implicitimplictにタイポしている箇所があったのを修正しています。


Merge pull request #32190 from liwii/use_year_names

actionview/lib/action_view/helpers/date_helper.rbの修正です。

date_selectメソッドにyearの値をカスタマイズする為のyear_formatオプションを追加しています。

例。

date_select('user_birthday', '', start_year: 1998, end_year: 2000, year_format: -> year { "Heisei #{year - 1988}" })
<select id="user_birthday__1i" name="user_birthday[(1i)]">
<option value="1998">Heisei 10</option>
<option value="1999">Heisei 11</option>
<option value="2000">Heisei 12</option>
</select>

Update fugit to latest version

Gemfile.lockの修正です。

fugitのバージョンを最新のバージョンに更新しています。Rubyのwarningが表示されるのを避ける為。