2018/10/16分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Deprecate ActiveSupport::Multibyte::Chars.consumes?
activesupport/lib/active_support/multibyte/chars.rb
の修正です。
ActiveSupport::Multibyte::Chars.consumes?
がdeprecateになりました。String#is_utf8?
を使う必要があります。
なお、deprecateになったのは、ActiveSuppport::Multibyte::Chars.consumes?
が元々Rails内部で使う為に追加されていた、かつ、現状は使用していない為。
Fix Collection cache key with limit and custom select (PG:AmbigousColumn: Error)
activerecord/lib/active_record/collection_cache_key.rb
の修正です。
collection_cache_key
メソッドでcache key用のカラムをselectする際に、明示的に別名(collection_cache_key_timestamp
)を指定するよう修正しています。
JOIN等をして同じ名前のカラムをselectしてしまい、ambiguous column errorになってしまうのを防ぐ為。
Merge pull request #29204 from RasPat1/issue-29200-scaffold-reference-display-memory-address
railties/lib/rails/generators/erb/scaffold/templates/index.html.erb.tt
、
railties/lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
の修正です。
scaffold generatorが生成するindex.html.erb
、及び、show.html.erb
で、blongs_to assocationを表示する際に、オブジェクトを表示していた(オブジェクトのメモリアドレスが表示されていた)のを、idを表示するよう修正しています。
Extends documentation for ActiveSupport::Cache#fetch_multi [ci skip]
activesupport/lib/active_support/cache.rb
のdocの修正です。
ActiveSupport::Cache#fetch_multi
メソッドのdocに、fetch_multi
メソッドにオプションを渡した場合のexampleを追加しています。
Add regression test against habtm memoized singular_ids
activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
の修正です。
has_and_belongs_to_many
ssociationsを使用している場合に、assocationが追加された際にsingular idsの値がreloadされる事を確認するテストを追加しています。