なるようになるブログ

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

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

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

CHANGELOGへの追加はありませんでした。


execute yarn executable using current ruby interpreter

railties/lib/rails/tasks/yarn.rakeの修正です。

bin/yarnruby経由で実行するよう修正しています。Windowsでも動作するようにする為。


Don't like to add extra models/tables/fixtures, use existing those

Active Recordのテストの修正です。

Load timesetamps on join tables for has_many :through fixtures で追加されたテスト用のfixturesを削除し、元々あったfixturesを使ってテストするよう修正しています。


Fix test "case-sensitive attributes hash"

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

case-sensitive attributes hashのテストで、必要なattributeのテストだけ行うよう修正しています。


Don't extend the _read_attribute internal API in the test

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

STI nameにblankを指定するテストで、テスト内で_read_attributeメソッドをextendしていたのを、しないよう修正しています。


Use current_adapter? over ActiveRecord::Base.connection.adapter_name in tests

activerecord/test/cases/column_alias_test.rbactiverecord/test/cases/fixtures_test.rbの修正です。

テスト対象かどうかをチェックするのにActiveRecord::Base.connection.adapter_nameを使用していたのを、current_adapter?メソッドを使用するよう修正しています。


Inlining write_attribute_without_type_cast internal API

Active Recordの修正です。

type castを行わずに書き込みを行うのをメソッドで行っていたのを、インラインで行うよう修正しています。


Refactor to use model instead of record as argument in Action Cable

actioncable/lib/action_cable/channel/streams.rbの修正です。

stream_or_reject_forの引数名がrecordになっていたのをmodelに修正しています。Action Cabeの他の処理と変数名をあわせる為。