なるようになるブログ

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

rails commit log流し読み(2018/07/18)

2018/07/18分のコミットです。

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


Remove unnecessary tap

activestorage/test/models/attached/many_test.rbの修正です。

attachmentのreplaceのテストから不要なtap処理を削除しています。


Merge pull request #33375 from utilum/stub_leftover

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

不要なMocha#stubsの削除、及び、Mocha#stubsMinitest#stubへの置換えを行っています。


Add situation for belongs to association. [ci skip]

rails guideのActive Record Associationsの修正です。

The belongs_to Associationの項の注記部分、belongs_to associationにはsingular termを使う必要がある旨説明している箇所で、エラーが発生するコードの具体例を追加しています。


Add example for has-and-belongs-to-many association. [ci skip]

rails guideのActive Record Associationsの修正です。

The has_and_belongs_to_many Associationの項に、 has-and-belongs-to-many associationを使用している場合にrecordを作成する方法についての説明を追加しています。

が、既に他の箇所で同様の説明がされており、後ほどrevertされています。