2021/05/13分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Compute table name based on model name
activerecord/lib/active_record/model_schema.rbの修正です。
modelのtable nameを生成する際に、class nameを元に作成していたのを、model name(model_name)を元に作成するように修正しています。model_nameメソッドをオーバーライドして、独自のテーブル名を使えるようにする為。
ensure normalize_name is operating on a string
actionview/lib/action_view/lookup_context.rbの修正です。
renderの引数にSymbolが指定された場合にエラーになってしまうバグがあったのを修正しています。
Merge pull request #42177 from eregon/cleanup-mime-regexps
actionpack/lib/action_dispatch/http/mime_type.rbの修正です。
mime typeのparseに使用するRegexpについて、不要な重複やエスケープを削除するよう修正しています。
Merge pull request #42167 from ricardotk002/conditionally-load-etag-with-flash
actionpack/lib/action_dispatch/middleware/flash.rb、
railties/lib/rails/application/default_middleware_stack.rbの修正です。
session storeが無効化されてしる場合に、flash render時にエラーになってしまうバグがあったのを修正しています。
Derive foreign key from model name in has_many associations
activerecord/lib/active_record/reflection.rbの修正です。
has_many associationsでforeign keyを取得する際に、modelではなくmodel_name経由で値を取得するよう修正しています。model_nameメソッドをオーバーライドして独自のテーブル名指定している場合に動作するようにする為。
Don't check type on add_column via column_exists?`
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rbの修正です。
add_column内でcolumn_exists?でカラムが存在するかどうかをチェックする際に、typeはチェックしないよう修正しています。cast処理により元の名前と実際の型が異なってしまう場合(e.g. blobとbinary)にチェックが正しく行えない(既に同じカラムがあるのに、無いと誤判定してしまう事がある)為。
Merge pull request #42210 from jhawthorn/template_details_rebase
Action Viewの修正です。
templateのlocaleやvariant等の値のハンドリング処理がresolver内で行われていたのを、専用のクラス(ActionView::TemplateDetails)で行うよう修正しています。
Add changelog entry for #42212
activerecord/CHANGELOG.mdの修正です。
先のadd_column内のcolumn_exists?でtypeをチェックしないようにした対応について、CHANGELOGにエントリーを追加しています。
Merge pull request #42217 from zzak/api-guidelines-links
rails guideのAPI Documentation Guidelinesの修正です。