なるようになるブログ

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

rails commit log流し読み(2019/05/29)

2019/05/29分のコミットです。

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

actionview/CHANGELOG.md


Merge pull request #36324 from yoones/fix-unexpected-select-tag-delete-behavior

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

select_tagoptions引数にinclude_blankが含まれていた場合、deleteメソッドを使用してoptions引数自身の状態を変更してしまっていたのを、exceptメソッドを使用して状態を変えないよう修正しています。


Address intermittent CI failure due to unfilled schema columns cache

activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rbの修正です。

schema cacheがあるかどうかに関わらずテストが通るようにする為に、assert_no_queriesの代わりにassert_queries(0)を使用するよう修正しています。


Fix comment for "broken" inverse_of associations [ci skip]

activerecord/test/models/face.rbのdocの修正です。

テスト用のmodel内のコメントのグラマーを修正しています。


Address intermittent CI failure in cascaded_eager_loading_test.rb

activerecord/test/cases/associations/cascaded_eager_loading_test.rbの修正です。

schema cacheがあるかどうかに関わらずテストが通るようにする為に、assert_no_queriesの代わりにassert_queries(0)を使用するよう修正しています。


Remove frozen_string_literal magic comment from template file

actionmailbox/lib/rails/generators/test_unit/templates/mailbox_test.rb.ttの修正です。

MailBoxのテスト用テンプレートファイルからfrozen_string_literalコメントを削除しています。現状、テンプレートファイルにはfrozen_string_literalコメントを含まないようにしているため。


Bring after_bundle back to API document [ci skip]

railties/lib/rails/generators/rails/app/app_generator.rbのdocの修正です。

元々API docに表示されていたafter_bundleAPI docに表示されないようになっていたのを、再度API docに表示されるよう修正しています。


Merge pull request #36077 from st0012/update-doc-for-pluck

rails guideのActive Record Query Interfaceの修正です。

pluckの項に、eager load + pluckを行った場合の挙動についての説明を追加しています。


Remove wrong default value for cache_versioning in documentation of cache_version

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

cache_versionメソッドのdocで、デフォルト値についての説明が誤っていたのを修正しています。