なるようになるブログ

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

rails commit log流し読み(2023/08/26)

2023/08/26分のコミットです。

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


Merge pull request #49037 from etiennebarrie/fix-test-leak

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

param_delimiterに関するテストで、テストでclassの値を変更していたのを、Object#withを使用して特定のblock内でのみ値を変更するよう修正しています。


Add bigdecimal to runtime dependency

activesupport/activesupport.gemspecの修正です。

Active Supportのruntime dependencybigdecimalを追加しています。bigdecimalRuby 3.4でbundled gemになる予定があり、bundler経由でインストールしないとRuby 3.3でwarningメッセージが出るようになった為。


Replace repeated list literals in Getting Started guide w/ a constant (#49007)

rails guideのGetting Started with Railsの修正です。

Using Concernsの項にあるexampleコードで、selectタグに指定する値に定義済みの定数を使用するよう修正しています。


Merge pull request #49040 from paulreece/select_hash_sql_fix

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

ActiveRecord::QueryMethods#selectにHashを指定 + Hashにtable aliaseが含まれている場合に、aliasが解決されるよう修正しています。#whereと挙動を合わせる為。