2019/05/01分のコミットです。
CHANGELOGへの追加はありませんでした。
Remove dynamic_form gem references in guides
rails guideのRails Internationalization (I18n) API
の修正です。
ガイドからdynamic_form
gemの説明を削除しています。もうメンテされておらず、Rails 4からは正常に動作しない為。
revert changes to monotonic times
activesupport/lib/active_support/notifications/fanout.rb
の修正です。
ActiveSupport::Notifications::Fanout
で処理時間の計算にConcurrent.monotonic_time
を使うようになっていたのを、Time.now
に戻しています。
元々Time
のインスタンスだったのがFloat
(Concurrent.monotonic_time
の戻り値はFloat
)になった事により、元々Time
のインスタンスを期待していたアプリが動作しなくなった、Time
を返す事はドキュメントに記載していた挙動である、また、Float
をTime
のインスタンスに正しく変換する方法は無い、等の理由により修正されています。
any? should be delegated to the errors list
activemodel/lib/active_model/errors.rb
の修正です。
ActiveModel::Errors
で@errors
にdelegateするメソッドにany?
を追加しています。scaffoldで生成したコードがdeprecation warningが表示されずに動作するようにする為。
@controller
may not be defined here, and if so, it causes a Ruby warning
actionview/lib/action_view/test_case.rb
の修正です。
ActionView::TestCase
で@controller
を参照する前にdefined?
で定義されているかどうかチェックするよう修正しています。
Remove database specific sql statements from SQLCounter
Active Recordのテストの修正です。
SQLCounter
でmetadataを取得するSQLを無視する為に、adapter毎に無視するSQLのstatementsを定義しそのSQLと一致するかをチェックしていたのを、SCHEMA
引数が定義されているかどうかでチェックするよう修正しています。
Active Model release notes [ci skip]
rails guideのRuby on Rails 6.0 Release Notes
の修正です。
Active Modelの変更点についてRelease Notesに記載しています。