2019/02/14分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #35244 from palkan/fix/activerecord-database-uri-resolve
activerecord/lib/active_record/database_configurations.rb
の修正です。
DATABASE_URL
を指定している、かつ、database.yml
でDATABASE_URL
を使用していない場合に、configパース時にエラーになってしまうバグがあったのを修正しています。
Merge pull request #35229 from rails/fix-35222
Action Viewの修正です。
formats
を指定してpartial template renderした際に、lookup contextが変わる(元々htmlが指定されていたのが、partial render時にformats: :xml
を指定した場合、以降xmlのtemplateがlookupされる)ようになっていたのを、partial renderでcontextは変わらなくなるよう修正しています。
Clean for fix done in #35229. Removed unused arguments
actionview/lib/action_view/base.rb
の修正です。
ActionView:Baes.build_lookup_context
メソッドの引数から不要な変数を削除しています。
Address to useless assignment formats = nil
after #35254
actionview/lib/action_view/base.rb
の修正です。
Useless assignment to variable - formats
のワーニングが出ていたのを修正しています。
activesupport/lib/active_support/dependencies/zeitwerk_integration.rb
の修正です。
ZeitwerkIntegration.setup_autoloaders
メソッド内のautoload pathがディレクトリかどうかのチェック処理をearly returnを使用するようリファクタリングしています。
Cached collections only work if there is one template
actionview/lib/action_view/renderer/partial_renderer.rb
の修正です。
cached collectionsにtemplateが2つ以上、又は未指定の場合に、エラーをraiseするよう修正しています。cached collectionsはtemplateが1つの場合のみ動作するため。
Revert "Chaining named scope is no longer leaking to class level querying methods"
Chaining name scopeを使用しているときそのchainしてるscopeがclass levelのquery methodに影響を与えないよう修正した、Chaining named scope is no longer leaking to class level querying methodsをRevertしています。
breaking changeになってしまうので、deprecateからはじめるとの事です。
Adding enque time tracking and logging
activejob/lib/active_job/core.rb
、
activejob/lib/active_job/logging.rb
の修正です。
jobでenqueueした時間(enqueued_at
)を保持するよう修正しています。
Use Dir#children and Dir#each_child instead of excluding "." and ".."
activesupport/lib/active_support/cache/file_store.rb
の修正です。
Cache::FileStore
でディレクトリの中身を取得する際に、.
と..
を自分で除外していたのを、Dir#children
、Dir#each_child
メソッドを使用するよう修正しています。
actionview/test/template/csp_helper_test.rb
の修正です。
csp_meta_tag
メソッドについてのテストを追加しています。
Merge pull request #35261 from rails/zeitwerk-as-dependency
Active Supportの修正です。
先日サポートを行われたzeitwerkをActive Supportのdependencyに追加しています。
元々は使用するにはユーザが明示的にGemfileにzeitwerkを追加する必要があったのですが、Rails 6.0だとデフォルトで使用するようになっておりdependencyにしてしまって良いのでは、という話になり修正されました。
Register new autoloading in AS CHANGELOG [ci skip]
activesupport/CHANGELOG.md
の修正です。
zeitwerkの対応についてCHANGELOGにエントリーを追加しています。