なるようになるブログ

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

rails commit log流し読み(2020/11/05)

2020/11/05分のコミットです。

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

activesupport/CHANGELOG.md


disable compression for MemoryStore's by default

activesupport/lib/active_support/cache/memory_store.rbの修正です。

MemoryStoreでcompressionの設定をデフォルト無効にするよう修正しています。

memcacheやredisと異なり、MemoryStoreはネットワーク越しのデータのやり取りが発生せず、compressionするメリットが無いため。


Add legacy_connection_handling to "Configuring Rails Applications" guide [ci skip]

rails guideのConfiguring Rails Applicationsの修正です。

legacy_connection_handling configについての説明を追加しています。


Don't over protect the MySQL users on insert_all

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

insert_allRDBMSがinsert conflictをサポートしていない場合、unique indexのチェックを行わないよう修正しています。


Ensure the connection used in a failed rollback is discarded

activerecord/lib/active_record/connection_adapters/abstract/transaction.rbactiverecord/lib/active_record/connection_adapters/abstract_adapter.rbの修正です。

rollbackされたtransactionでエラーが発生した場合に、その時に使用したconnectionを破棄するよう修正しています。

同じconnectionが再度使用されると、保留中のtransactionがcommitされてしまう事がある為。


Update database_configurations.rb output message

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

adapterが指定されていない場合のエラーメッセージのグラマーの修正を行っています。


Fix enum on custom attribute with default

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

custom attributeでenumdefaultを指定した場合、defaultの指定が無視されてしまうバグがあったのを修正しています。


Allow default to be configured for serialization

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

serialize attributeにdefaultを指定出来るよう修正しています。


ActiveModel::Model can be frozen again

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

ActiveModel::Modelインスタンスに対してfreezeを2回実行するとエラーになるバグがあったのを修正しています。


Fix web-console version for Rails 6.1

railties/lib/rails/generators/rails/app/templates/Gemfile.ttの修正です。

デフォルトで使用するweb-consoleのバージョンを4.1.0以上に更新しています。Rails 6.1と互換性があるのが4.1.0からな為。


Merge pull request #40531 from eileencodes/fix-connected_to_many

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

connected_to_manyメソッドの第一に引数をsplatに変更し、bracketの指定無しで複数の値を受け取れるよう修正しています。