なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2018/09/09)

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.rbactiverecord/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.rbactiverecord/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はリトライの回数ではなく、ジョブが実行された回数の合計である旨説明を追加しています。