2021/02/24分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #41509 from m-antis/main
rails guideのActive Record Basics
の修正です。
Naming Conventions
の項、テーブル名はスネークスケースである必要がある旨説明を追加しています。
Require a for config.cache_store = :file_store
activesupport/lib/active_support/cache.rb
、
activesupport/lib/active_support/cache/file_store.rb`の修正です。
cache storeにfile_store
を指定 + pathの指定が無い場合に、アプリケーションのルートディレクトリにキャッシュファイルが作成されてしまうバグがあったのを修正しています。
Just adding an allow all robots.txt file
guides/assets/robots.txt
の修正です。
rails guideのrobots.txt
を追加しています。
Arel::Nodes::BindParam
and Arel::Nodes::Quoted
are a subclass of the Arel::Nodes::Node
activerecord/lib/arel/nodes/casted.rb
の修正です。
Casted.build_quoted
メソッドのclassチェックからArel::Nodes::BindParam
とArel::Nodes::Quoted
を削除しています。親クラスのArel::Nodes::Node
を指定済みな為。
[ci skip] Note dangerous use of redirect_to
actionpack/lib/action_controller/metal/redirecting.rb
のdoc及びrails guideのSecuring Rails Applications
の修正です。
redirect_to
にユーザが指定した値をそのまま渡すのは危険である旨注意を追加しています。
Merge pull request #41496 from jhawthorn/preloader_batch
activerecord/lib/active_record/associations/preloader.rb
、
activerecord/lib/active_record/associations/preloader/batch.rb
の修正です。
Batch Preloader::Association queries having similar queriesのフォローアップとして、子preloadのqueryについても類似のqueryはmergeするよう修正しています。
Load timesetamps on join tables for has_many :through
fixtures
activerecord/lib/active_record/fixture_set/table_row.rb
の修正です。
has_many :through
用のfixtureをloadした際に、join tableのcreated_at
/ updated_at
も設定するよう修正しています。
Fix documentation for joins across clusters
rails guideのMultiple Databases with Active Record
の修正です。
Joining Across Databases
の項で、クラスター間のjoinをRails 6.1でサポートする旨説明がされていたのですが、実際はまだサポートされていない、かつ、いつサポートするかを確約出来ないので、アプリケーション側で対応する必要がある旨説明を修正しています。