2019/01/15分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actioncable/CHANGELOG.md
- Allow
ActionController::Paramsas argument ofActiveRecord::Base#exists?. - Set polymorphic type column to NULL on
dependent: :nullifystrategy.
Restructure credentials after environment overrides.
railtiesの修正です。
credentialsまわりのリファクタリングとして、メソッド名を適切な名前に変更、不要な変数を削除、不足していたdocの追加等々を行っています。
Merge pull request #34933 from palkan/feature/cable-testing-guides
Action Cableの修正です。
channel genetarorでファイルを生成する際にテスト用のファイルも生成するよう修正、及び、Testing Rails ApplicationsにAction Cableのテストについて説明したTesting Action Cableの項を追加しています。
これでaction-cable-testing gemのRailsへのマージ処理は終了との事です。
Merge pull request #34934 from rmacklin/simplify-actioncable-methods-after-decaffeination
Action Cableの修正です。
不要な明示的なundefinedのreturnを削除、同じく不要なnullチェック処理の削除等のリファクタリングを行っています。
Action CableのCoffeeScript -> ES2015への変換はdecaffeinate/decaffeinateを使って行ったのですが、その際に不要な処理が含まれてしまっていたとの事です。
Refactor calculating beginning_of_quarter and end_of_quarter (#34927)
activesupport/lib/active_support/core_ext/date_and_time/calculations.rbの修正です。
beginning_of_quarter、end_of_quarterメソッドで不要なArrayのオブジェクトを生成しないようリファクタリングをしています。
Merge pull request #34891 from gmcgibbon/ac_params_exists
activerecord/lib/active_record/relation/finder_methods.rbの修正です。
ActiveRecord::Base#exists?の引数にActionController::Paramsのインスタンスを指定出来るよう修正しています。
Document the ActionCable JS changes in the upgrade guide & release notes
rails guideのRuby on Rails 6.0 Release Notes、Upgrading Ruby on Railsの修正です。
Action CableのJSがES2015に変換された事についての説明、及び、それにより発生したAPIのbreaking changesについての説明を追加しています。
Merge pull request #34931 from bogdanvlviv/add-mention-to-main-readme-about-new-libraries
README.md、railties/RDOC_MAIN.rdocの修正です。
新たに追加されたAction MailboxとAction Textフレームワークについての説明を追加しています。
Remove unused Arel::Compatibility::Wheres
activerecord/lib/arel.rb、activerecord/lib/arel/compatibility/wheres.rbの修正です。
使用していないArel::Compatibility::Wheresクラスを削除しています。
Deprecate connection.visitor = ... which is not released internal usage
activerecord/lib/active_record/connection_adapters/abstract_adapter.rbの修正です。
connection.visitor=をdepreacteにしています。
元々はvisitorをカスタマイズしたい時に使用する事を想定して提供していたようなのですが、現状その使用方法は正しく提供されていない、かつ、visitorをカスタマイズしたい場合はarel_visitorを使用すれば良いため、depreacteにしたとの事です。
Remove public prevent_writes writer
activerecord/lib/active_record/connection_adapters/abstract_adapter.rbの修正です。
内部でだけ使用する変数の可視性がpublicになっていたのを修正しています。
Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28078)
Active Recordの修正です。
polymorphic associations + dependent: :nullifyオプションを指定した場合に、_type columnがnullifyされないバグがあったのを修正しています。