2018/09/09分のコミットです。
CHANGELOGへの追加はありませんでした。
Use visitor.compile
instead of constructing by connection itself
Active Recordの修正です。
column nameを生成するのに独自メソッドを使用していたのを、visitorにあるその為のメソッド(#compile
)を使用するよう修正しています。
Revert a writer for BindParam#value
Arel::Nodes::BindParam
classのvalue
attributesをattr_accessor
-> attr_reader
に変更しています。
元々Active Recordのテストを通す為にwriterを使用するようになっていたのですが、今は不要になっている為。
Consistently use visitor.compile
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
、
activerecord/lib/arel/visitors/to_sql.rb
の修正です。
SQLの生成処理にvisitor.compile
を使用するよう統一しています。
Add missing perform_enqueued_jobs
to error logging test
activejob/test/cases/logging_test.rb
の修正です。
error loggingのテストでenqueuしたjobの実行処理が漏れていて、実際には何もテスト出来ていなかったのを修正しています。
Fix sqlite3 url config in "Configuring Rails Applications" guide
rails guideのConfiguring Rails Applications
の修正です。
Connection Preference
の項にあるconfig/database.yml
のexampleで、SQLite3のURLの指定に誤りがある箇所があったのを修正しています。
Fix explanation of ActiveRecord::Base.configurations.configs_for
in the CHANGELOG
activerecord/CHANGELOG.md
の修正です。
ActiveRecord::Base.configurations.configs_for
メソッドの引数の指定に誤りがある箇所があったのを修正しています。
Fix ActiveRecord::DatabaseConfigurations
's docs
activerecord/lib/active_record/database_configurations.rb
、
activerecord/lib/active_record/database_configurations/hash_config.rb
のdocの修正です。
DatabaseConfigurations
クラスの各メソッドのdocで、戻り値のクラスや、メソッド名の説明に誤りがある箇所があったのを修正しています。
clarifies documentation around the attempts arugment to retry_on
activejob/lib/active_job/exceptions.rb
のdocの修正です。
retry_on
メソッドのdocに、attempts
はリトライの回数ではなく、ジョブが実行された回数の合計である旨説明を追加しています。