2018/01/25分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Clear the transaction state when AR object is duped.
- Fix
count(:all)
with eager loading and having an order other than the driving table.
Avoid passing unnecessary arguments to relation
Active Recordの修正です。
Relation.new
のklass以外の引数をキーワード引数に変更して、table
、predicate_builder
のデフォルト引数にklass.arel_table
、klass.predicate_builder
をそれぞれ指定するよう修正し、不要な場合は引数を指定しないで良いよう修正しています。
Merge pull request #31642 from fatkodima/metal-action-duplication
actionpack/lib/action_controller/metal.rb
の修正です。
ActionController::Metal.action
メソッドで重複していたコードがあったのを修正しています。
Merge pull request #31690 from olivierlacan/no-verbose-query-logs-in-console
activerecord/lib/active_record/railtie.rb
の修正です。
rails consoleではquery logが表示されないよう修正しています。consoleの場合強制的にverbose_query_logs
にfalseが指定されるようになっています。
Skip test that use fork in the memory store db
activerecord/test/cases/connection_adapters/connection_handler_test.rb
の修正です。
テストにSQLite3のin memory dbを使用している場合に、forkを使用しているテストを実行しないよう修正しています。in memory dbだと異なるプロセス間でデータを共有出来ない為。
Only run isolated tests on the latest stable ruby: that's now 2.5
ci/travis.rb
の修正です。
CIでRuby 2.4を使用したテストがisolatedで実行されていなかったのを、isolatedで実行されるよう修正しています。
Clear the transaction state when AR object is duped
activerecord/lib/active_record/core.rb
の修正です。
Active Recordのobjectをdupした際に、transaction stateもclearするよう修正しています。
Expand AR to Active Record [ci skip]
activerecord/CHANGELOG.md
の修正です。
AR
-> Active Record
に修正しています。
Fix count(:all)
with eager loading and having an order other than the driving table
activerecord/lib/active_record/relation/calculations.rb
の修正です。
count(:all)
+ eager load + orderにcountを実行した元のテーブルに無いカラムを指定した場合に、PG::InvalidColumnReference
が発生してしまうバグがあったのを修正しています。
Remove internal typecasted_attribute_value
method
activerecord/lib/active_record/attribute_methods.rb
の修正です。
_read_attribute
メソッドを呼び出すだけになっていたtypecasted_attribute_value
メソッドを削除して、_read_attribute
メソッドを直接呼び出すよう修正しています。
Fix typo in API document FormHelper#fields
actionview/lib/action_view/helpers/form_helper.rb
のdocの修正です。
FormHelper#fields
メソッドのdoc内のタイポ、フォーマットの修正を行っています。
Remove unused test/fixtures/teapots.yml
使用していないtest/fixtures/teapots.yml
を削除しています。