2023/12/12分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #50319 from fatkodima/fix-where-for-polymorphic-cpk
activerecord/lib/active_record/relation/predicate_builder/polymorphic_array_value.rb
の修正です。
composite primary keyを使用しているmodelをpolymorphic associationで参照している場合に、where
にそのmodelを指定した場合にエラーになってしまうバグがあったのを修正しています。
Merge pull request #49472 from mateusdeap/main
rails guideのRails Routing from the Outside In
の修正です。
Resource Routing: the Rails Default
セクション内のグラマーの修正を行っています。
Merge pull request #49858 from skipkayhil/hm-dont-assign-internal-variables
Action Pack、Action Viewの修正です。
Action Viewの内部用の変数がActionView::Base
のinstance_variables
から参照出来ないよう修正しています。
fix LocalCache#read_multi_entries not namespacing keys before looking them up in the cache
activesupport/lib/active_support/cache.rb
、
activesupport/lib/active_support/cache/strategy/local_cache.rb
の修正です。
LocalCache#read_multi_entries
で、namespaceを使用している場合にkeyのnormalizeが行われなかったバグの修正、及び、raw valueが正しくdeserializeされないバグがあったのを修正しています。
Merge pull request #47306 from zzak/re-47129
actionpack/test/controller/routing_test.rb
の修正です。
action_dispatch.route_uri_pattern
headerの値を確認するテストを追加しています。
Merge pull request #50163 from EduardoGHdez/interval-overflow-protection
activerecord/lib/active_record/connection_adapters/postgresql/oid/interval.rb
の修正です。
PostgreSQL adapterで、interval
型のattributeに巨大な値が指定された場合に適切なフォーマットで値を扱えるようにするため、値のserialze時にActiveSupport::Duration
に変換するよう修正しています。
rails guideのThe Rails Command Line
の修正です。
bin/rails generate
セクション内のタイポを修正しています。
Merge pull request #50281 from p8/activerecord/assert-queries
Active Recordの修正です。
Railsのテストで使用されていた、SQLが実行された/されなかったを確認するためのassertions(assert_queries
とassert_no_queries
)をpublic APIとして公開しています。
Document :request in start_processing's payload
rails guideの`Active Support Instrumentationの修正です。
start_processing.action_controller
hookのpayloadに、:request
についての説明を追加しています。
Lock bigdecimal
version to 3.1.4
activesupport/activesupport.gemspec
の修正です。
bigdecimal
gemのバージョンを3.1.4以下に固定しています。3.1.5だとCIでエラーになってしまうため。
Update outdated documentation for Engines
rails guideのGetting Started with Engines
の修正です。
Using a Class Provided by the Application
セクションにあるgeneratorが生成するファイルの例が実際の結果と異なっていたのを修正しています。