2020/01/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Allow ActiveSupport deprecation warnings to be configured as disallowed
Active Supportの修正です。
deprecation messageが出力された場合の振る舞いを指定出来る対応しています。
対象とするmessage及び振る舞いはconfigで指定(config.active_support.disallowed_deprecation_warnings
とconfig.active_support.disallowed_deprecation
)出来るようになっています。
例。
ActiveSupport::Deprecation.disallowed_behavior = :raise ActiveSupport::Deprecation.disallowed_warnings = [ "something broke" ] ActiveSupport::Deprecation.warn('something broke!') # => ActiveSupport::DeprecationException
activesupport/lib/active_support/deprecation/disallowed.rb
の修正です。
MatchData
が不要な箇所でmatch
を使用していたのを、match?
を使用するよう修正しています。
activerecord/lib/active_record/associations/preloader/association.rb
の修正です。
booleanの値だけ必要な箇所でArrayを使用していたのを、booleanを使用するよう修正しています。
If dependent: nil
is valid for has_many, it also be valid for has_one
activerecord/lib/active_record/associations.rb
のdocの修正です。
has_one
のdependent
オプションに指定出来る値のリストにnil
を追加しています。
Remove SQLite version support caveats [ci skip]
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
のdocの修正です。
Nested transactionsについて説明している箇所からSQLite3のバージョンについての説明を削除しています。Rails 6.0でサポートしているSQLite3では全て使用出来る為。
Avoid extra Array allocation for build_tag_values
actionview/lib/action_view/helpers/tag_helper.rb
の修正です。
build_tag_values
メソッドで値を組み立てる際にArray
の生成を減らすようリファクタリングしています。