2020/01/20分のコミットです。
CHANGELOGへの追加はありませんでした。
activerecord/test/cases/adapters/sqlite3/transaction_test.rb
の修正です。
テスト名のタイポを修正しています。
Fix deprecate_methods
to not expand positional argument hash
activesupport/lib/active_support/deprecation/method_wrappers.rb
の修正です。
deprecate_methods
メソッドで、ruby2_keywords
を使用して、Hash引数の展開が行われないよう修正しています。
Extract message = options[method_name]
out of method definition
activesupport/lib/active_support/deprecation/method_wrappers.rb
の修正です。
メソッドが定義済み/未定義の場合それぞれで行っていたoptions
からの値の取得処理を、分岐処理前で行うよう修正しています。
add_foreign_key
's arguments are compatible (invertable) for remove_foreign_key
without customize
activerecord/lib/active_record/migration/command_recorder.rb
の修正です。
add_foreign_key
のinvert処理に独自のメソッド(invert_add_foreign_key
)が使用されていたのを、remove_foreign_key
メソッドを使用するよう修正しています。add_foreign_key
とremove_foreign_key
は同じオプションが指定出来、そのまま利用出来る為。
Invertable methods should have compatible method signature
Active Recordの修正です。
migrationのinvertable methodsの引数指定をキーワード引数で統一するよう修正しています。
invertable methodを実行する際にキーワード引数と非キーワード引数が混在してwarningが出てしまうのを避ける為。
*_for_alter
methods should also takes keyword arguments
Active Recordの修正です。
先のキーワード引数の対応同様、*_for_alter
メソッドもメソッドの引数指定をキーワード引数に修正しています。
Merge pull request #38260 from kamipo/fix_kwargs_warning_for_activejob
Action Mailer、Active Jobの修正です。
Active Jobでキーワード引数に関する警告が表示されないよう対応しています。