2017/06/21分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Use bulk INSERT to insert fixtures for better performance.
- Fix destroying existing object does not work well when optimistic locking enabled and
locking column
is null in the database. ActiveRecord::Persistence#touch
does not work well when optimistic locking enabled andlocking_column
, without default value, is null in the database.
[ci skip] Fixed the attribute name for event.detail
rails guideのWorking with JavaScript in Rails
の修正です。
Rails-ujs event handlers
の項、attribute名をタイポしていたのを修正しています。
Merge pull request #28833 from bogdanvlviv/add-test-cases-for-optimistic-locking
activerecord/lib/active_record/locking/optimistic.rb
、
activerecord/test/cases/locking_test.rb
の修正です。
optimistic lockingに使用するカラムを任意の値に更新出来ない事を確認するテストを追加しています。
Merge pull request #29503 from savroff/fix_current_page_engine_issue
actionview/lib/action_view/helpers/url_helper.rb
の修正です。
scopeまたはrails engine配下のページでcurrent_page?
メソッドで正しく現在ページのチェックが出来ないバグがあったのを修正しています。
trailing slashのせいで正しく検知出来ていなかった為、request_uri
のtrailing slashを削除し対応しています。
Shrink image files in the guides using ImageOptim
rails guideの修正です。
guide内で使用している画像をImageOptimを使用して圧縮しています。
Use bulk INSERT to insert fixtures
Active Recordの修正です。
fixturesを作成する際に、bulk INSERTを使用するよう修正しています。
Adds missing minor doc about tools/test.rb [ci skip]
tools/README.md
、tools/test.rb
の修正です。
tool/test.rb
についての説明をREADMEに追記しています。
Fix destroy with locking_column value null
activerecord/lib/active_record/locking/optimistic.rb
の修正です。
optimistic lockingを使用している、かつ、locking_column
がnilの場合に、オブジェクトのdestryがエラーになってしまうバグがあったのを修正しています。
Fix ActiveRecord::Persistence#touch with locking
activerecord/lib/active_record/persistence.rb
の修正です。
optimistic lockingを使用している、かつ、locking_column
にdefaultの値が設定されておらずnilの場合に、touch
メソッドを呼び出した場合にエラーになってしまうバグがあったのを修正しています。
Fix call-seq typo s/==/<=>/ [ci skip]
activemodel/lib/active_model/naming.rb
のdocの修正です。
ActiveModel::Name#<=>
メソッドのdoc内でメソッド名をタイポしていたのを修正しています。
Avoid begin/rescue in fixture quoting
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
の修正です。
ConnectionAdapters::DatabaseStatements#with_yaml_fallback
メソッドで、YAML.dump
が必要かどうかを判定するのに、quote
メソッドを呼び出してTypeError
が出るかどうかで判定していたのを、dump処理が必要な型(Hash
、Array
)でのみ明示的にYAML.dump
の呼び出しを行うようにし、不要なquote
処理やエラーハンドリング処理を削除していまs.