なるようになるブログ

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

rails commit log流し読み(2021/01/18)

2021/01/18分のコミットです。

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


Make ActiveModel's attribute behavior follow ActiveRecord's

activemodel/lib/active_model/attributes.rbの修正です。

Active Modelのattributeメソッドの挙動を、Active Recordのattributeのメソッドと一致するよう修正しています。


Fix joins that reserved word association is referenced in where

activerecord/lib/active_record/associations/join_dependency.rbの趣味です。

予約語と同じ名前のassociationをjoinに指定 + そのassociationをwhereで参照した場合に、エラーになってしまうバグがあったのを修正しています。


Merge pull request #41067 from eugeneius/relative_file_fixture_path

actionpack/lib/action_dispatch/testing/test_process.rbの修正です。

fixture_file_uploadでpathがfixture_path相対パスかをチェックする際に、file_fixture_path相対パスfixture_path絶対パスの場合に正しくチェックが行わないバグがあったのを修正しています。


Add a Webpacker guide [ci skip] (#40817)

Webpackerについて説明しているWebpacker guideを追加しています。


Explicit check for html and text parts

railties/lib/rails/templates/rails/mailers/email.html.erbの修正です。

メールのpreviewで、添付ファイルがある場合はHTML / text partが1つか無い場合も、format selectorが表示されるよう修正しています。