なるようになるブログ

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

rails commit log流し読み(2023/03/18)

2023/03/18分のコミットです。

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

activerecord/CHANGELOG.md


Run a load hook when TestFixtures is included

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

ActiveRecord::TestFixturesがincludeされた際に実行する:active_record_fixtures hookを追加しています。TestFixturesがincludeされた際にfixture_pathsにpathを追加する場合などに使う事を想定しているとの事です。

ActiveSupport.on_load(:active_record_fixtures) do
  self.fixture_paths << "test/fixtures"
end

Correct typos in activerecord changelog and querylogs docs [ci-skip]

activerecord/CHANGELOG.mdactiverecord/lib/active_record/query_logs.rbのdocの修正です。

initializerinializerにタイポしていたのを修正しています。