なるようになるブログ

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

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

2018/09/29分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activesupport/CHANGELOG.md

railties/CHANGELOG.md


Merge pull request #34017 from utilum/update_backburner_to_latest_version

Gemfile.lockの修正です。

backburner gemを最新のバージョンに更新しています。


Merge pull request #34012 from abraham-chan/indifferent-access-without

activesupport/lib/active_support/hash_with_indifferent_access.rbの修正です。

ActiveSupport::HashWithIndifferentAccessクラスでexceptのaliasとしてwithoutメソッドを定義するよう修正しています。

withoutの引数にSymbolを指定しても動作するようにする為。


Documentation clarity in ActiveJob::TestHelper [ci skip] (#33571)

activejob/lib/active_job/test_helper.rbのdocの修正です。

ActiveJob::TestHelper moduleの各メソッドの説明を修正しています。


Refactor migrations_path command option to database

Active Record、railtiesの修正です。

Add migrations_paths option to migration generator、及び、Merge pull request #33994 from gmcgibbon/rails_g_model_migrations_pathsでgeneratorにmigrations pathを指定出来るようになったのですが、複数DBで使うならmigration pathよりdb名を指定出来た方がわかりやすいのでは、という意見があった為、migration pathではなくdbを指定する形に修正されています。


Merge pull request #34020 from tgturner/update-cache-docs

rails guideのCaching with Rails: An Overviewの修正です。

ActiveSupport::Cache::Store:expires_inオプションについて説明している箇所に、cache storeがサポートしている場合のみ使用出来る旨説明を追加しています。


Reset ActiveRecord::Base.configurations to the value before

railties/test/generators/generators_test_helper.rbの修正です。

with_secondary_database_configurationメソッドで、テスト実行後にActiveRecord::Base.configurationsを元の値に戻すよう修正しています。