なるようになるブログ

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

rails commit log流し読み(2021/08/25)

2021/08/25分のコミットです。

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

actionview/CHANGELOG.md


Copy-edit documentation [ci skip]

activerecord/lib/active_record/relation/query_methods.rbのdocの修正です。

DB -> databaseに修正しています。


Make preload_link_tag work with images

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

preload_link_tagsvg以外の画像を指定した場合に、as attributeに適切な値が指定されるよう修正しています。


Clear up resolve_link_as

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

resolve_link_as内のif / elsifcase / whenを使用するよう修正しています。


Temporarily disable Azure service tests (#43091)

activestorage/test/test_helper.rbの修正です。

Azure serviceのテストを無効化しています。 API keyがexpireしたか何かでテストが通らない状態な為。


[GUIDES] Fix ActiveJob custom serializer typo

rails guideのActive Job BasicsAutoloading and Reloading Constantsの修正です。

initializerのファイル名のパスにタイポがあったのを修正しています。


[ci skip] Use symbols and double quoted strings more consistently in these docs

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

exampleコード内のsingle quoteをdouble quoteに修正、及び、Symbolを使える箇所をSymbolを使うよう修正しています。


[ci skip] Fix some links that didn't link but now should, you get me?

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

オプションについて説明をしている箇所のフォーマットが崩れていたのを修正しています。


[ci skip] Modernize example; make it consistent with the example at the top documentation

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

FormOptionsHelperのdoc内の言い回しの修正や、exampleコードのフォーマットの修正等を行っています。


[ci skip] Use more modern tag.x call structure

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

exampleコードでnestしたHTMLを生成するのにcontent_tagを使用していたのを、tagメソッドを使用するよう修正しています。


[ci skip] Use more consistent spacing; trim some ending newlines

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

不要な空行の削除、exampleコード内の適切な位置に改行の追加等を行っています。


[ci skip] Fully qualify attributes (we're in docs) and move them above the class so it's not confused with the belongs_to's

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

exampleコードでclassが想定しているattributeの説明をclassの前に説明するよう修正しています。