2019/05/24分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/CHANGELOG.md
Bump Gemfile entry jbuilder version
railties/lib/rails/generators/app_base.rb
の修正です。
rails new
で新規に作成するGemfile
内のjbuilderのバージョン指定を~> 2.5
から~> 2.7
に修正しています。jbuilder 2.6.4以降でRails 6をサポートしており、2.5系だとインストールに失敗してしまう為。
Add :allow_nil option to delegate_missing_to; use in ActiveStorage
activestorage/lib/active_storage/attached/one.rb
、
activesupport/lib/active_support/core_ext/module/delegation.rb
の修正です。
まず、delegate_missing_to
メソッドにallow_nil
オプションを追加しています。allow_nil
が指定されている場合、delegate先のObjectがnilの場合にDelegationError
をraiseする代わりにnilを返すようになります。
合わせて、Active Storageのsingular attachmentでこのオプションを指定するようにして、attachmentが指定されてない場合にメソッドを使用した場合に、エラーがraiseされないようにしています。
Delete evented_file_update_checker existing_parent
activesupport/lib/active_support/evented_file_update_checker.rb
の修正です。
使用していないEventedFileUpdateChecker#existing_parent
メソッドを削除しています。
Merge pull request #36323 from jhawthorn/cache_expiry_mutex
actionview/lib/action_view/cache_expiry.rb
の修正です。
Action Viewのcacheの削除処理をmutexで囲むよう修正しています。複数のリクエストで同時に処理が実行された場合に、エラーになってしまうのを防ぐ為。