2021/06/10分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/CHANGELOG.md
Use the current Rails->npm_version for package.json
railtiesの修正です。
rails new
した際のpackage.json
内のRails関連のnpm(@rails/ujs
や@rails/activestorage
など)がRailsのバージョンと完全に一致するようバージョンの指定を行うよう修正しています。
[ci skip] clarify rails 6 for AS :attachment
rails guideのActive Storage Overview
の修正です。
generatorのattachment
、attachments
fieldはRails 6.0以上でないと使えない旨説明を追加しています。
Fix invalid statement template compile error
actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb
の修正です。
エラー用のtemplate fileでend
の指定が不足してる箇所があったのを修正しています。
Merge pull request #42392 from FestaLab/activestorage/video-analyzer
activestorage/lib/active_storage/analyzer/video_analyzer.rb
の修正です。
video blobのmetadataに、audio channelが存在するかどうかを判別する為のaudio
keyを追加しています。audio channelが存在する場合、true
が設定されるようになっています。
Merge pull request #42423 from dorianmarie/Model.update!
activerecord/lib/active_record/persistence.rb
の修正です。
ActiveRecord::Base.update!
メソッドを追加しています。ActiveRecord::Base.update
のエラー時にexceptionをraiseする版。
Fix method name in update! error message [ci skip]
activerecord/lib/active_record/persistence.rb
の修正です。
Model.update!
メソッドで出力するエラーメッセージ内のメソッド名がupdate
になっていたのをupdate!
に修正しています。
Fix the Active Record test suite following fcc83e47384b69
activerecord/test/cases/persistence_test.rb
の修正です。
先のupdate!
のエラーメッセージの修正で、テストがコケてしまっていたのを修正しています。
activerecord/CHANGELOG.md
の修正です。
ActiveRecord::Base.update!
を追加した対応について、CHANGELOGにエントリーを追加しています。
Expand on AR::Base for method definition from #42423 [ci skip]
activerecord/CHANGELOG.md
の修正です。
ActiveRecord::Base.update!
を追加した対応エントリーのメソッドにクラス名を追加しています。
Correct changelog for #42423 to be class method instead of instance
activerecord/CHANGELOG.md
の修正です。
ActiveRecord::Base.update!
を追加した対応エントリーのメソッドの説明がインスタンスメソッドになっていたのをクラスメソッドに修正しています。
Add example for update_all vs. update
rails guideのActive Record Basics
の修正です。
Update
の項にActiveRecord::Base.update
メソッドについての説明を追加しています。
Merge pull request #42443 from daven97/daven97update_active_record_relation_wording
activerecord/lib/active_record/relation.rb
のdocの修正です。
find_or_create_by
メソッドのdocの言い回しを修正しています。
Make legacy_connection_handling
a module instance variable
Active Recordの修正です。
元々class variableだったlegacy_connection_handling
をmodule instance variableに変更しています。ancestor chainが長くなるようなクラスの場合、class variableだとパフォーマンス的に良くない為。
参考: Feature #17763: Implement cache for cvars - Ruby master - Ruby Issue Tracking System
Add x86_64-darwin-20 platform to the Gemfile
Gemfile.lock
の修正です。GemfileのPLATFORMS
にx86_64-darwin-20
を追加しています。