なるようになるブログ

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

rails commit log流し読み(2020/02/28)

2020/02/28分のコミットです。

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

activerecord/CHANGELOG.md


Reset the ActiveRecord::Base connection after rails db:migrate:name

activerecord/lib/active_record/railties/databases.rakeの修正です。

複数DB向けのdb:migrate(e.g. db:migrate:primary)実行後に、connectionを処理前のconnectionに戻すよう修正しています。

db:migrateと挙動を合わせる為。


Dump the schema or structure of a database when calling db:migrate:name

activerecord/lib/active_record/railties/databases.rakeの修正です。

複数DB向けのdb:migrate(e.g. db:migrate:primary)実行後に、schemaファイルのdumpが行われてなかったのを、db:migrateと同様にdumpファイルを生成するよう修正しています。


Merge pull request #38583 from kamipo/fix_unscope_with_arel_sql

activerecord/lib/arel.rbの修正です。

eqにarel attributeない値を指定 + unscopeを指定した場合にエラーになってしまうバグがあったのを修正しています。


Fix delegate_missing_to to allow keyword arguments

activesupport/lib/active_support/core_ext/module/delegation.rbの修正です。

delegate_missing_toにキーワード引数を指定した場合に警告が出ないよう対応しています。


Fix helper_method in ActionView::TestCase to allow keyword arguments

actionview/lib/action_view/test_case.rbの修正です。

ActionView::TestCaseのhelper methodにキーワード引数を指定した場合に警告が出ないよう対応しています。


[ci skip] Use yml extension for locale files

rails guideのRails Internationalization (I18n) APIの修正です。

Organization of Locale Filesの項にあるlocaleファイルのexampleの拡張子がrbになっていたのをymlに修正しています。

localeファイルのデフォルトの拡張子はymlの為。


Add a regression test that ActionText caught

actionview/test/template/render_test.rbの修正です。

renderobjectオプションを指定 + objectに違う名前を指定した場合のテストを追加しています。Action Textで左記のような使い方をしている為。


Fixes TypeError raised for parameter filter if the json data has key as integer

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

JSONデータのkeyにintegerがある場合、そのデータに対するparameter filter処理がエラーになってしまうバグがあったのを修正しています。


Added parallell testing of transactions section

rails guideのTesting Rails Applicationsの修正です。

parallel transactions についてテストしたい場合について説明した、Testing Parallel Transactionsの項を追加しています。