2017/07/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Remove database specific JSON types
Active Recordの修正です。
DB固有のJSON type(MysqlJson
、PostgreSQL::OID::Json
)を削除しています。
DBに依存しないJSON type(Type::Json
)がConsolidate database specific JSON types to Type::Json
で追加されておりDB固有のJSON typはもう不要な為。
Merge pull request #29653 from kamipo/fix_test_copying_migrations_preserving_magic_comments
Active Recordの修正です。
migrationファイルの先頭にfrozen_string_literal: true
が含まれている場合に、正しくマジックコメントが保持されるよう修正しています。
Gemfile.lock
の修正です。
Allow the use of Bundler 2.0の対応でGemfile.lock
の更新が漏れていたので対応しています。
Load the Parameters configurations on the right time
actionpack/lib/action_controller/railtie.rb
の修正です。
ActionController::Parameters.permit_all_parameters
の設定をActionController
load時に行うよう修正しています。
actionpack/lib/action_controller/railtie.rb
の修正です。
先の対応でend
が不足していたのを追加しています。
Merge pull request #29413 from kamipo/fix_association_with_scope_including_joins
Active Recordの修正です。
join処理が含まれるscopeと一緒にassocationをload / preloadした際に、正しいSQLが生成されないバグがあったのを修正しています。
Fix Parameters configuration integration tests
railties/test/application/configuration_test.rb
の修正です。
先に行われた、ActionController::Parameters.permit_all_parameters
の設定をActionController
load時に行うよう修正した対応の影響でコケてしまっていたテストがあったのを修正しています。
Use map
in delegate
so that actual prefixed method names are returned, if using prefix version.
activesupport/lib/active_support/core_ext/module/delegation.rb
の修正です。
Module.delegate
メソッドでprefix
オプションを使用している場合に、prefix
がついた状態のメソッド名の一覧を返すよう修正しています。
class MyClass private *delegate(:this, :that, :another, to: :some_method) end
上記のように、delegate
メソッドの戻り値のメソッドをまとめてprivate
にするときなどに変換後のメソッド名が必要な為、との事です。