2016/10/23分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #26863 from claudiob/revert-26826
activesupport/lib/active_support/hash_with_indifferent_access.rb
の修正です。
activesupport/lib/active_support/hash_with_indifferent_access.rb
でactive_support/core_ext/hash/indifferent_access
をrequireするよう対応した、Add missing require in active_support/hash_with_indifferent_access.rbをrevertしています。
active_support/core_ext/hash/indifferent_access
の方でactive_support/hash_with_indifferent_access
をrequireするようになっており、activesupport/lib/active_support/hash_with_indifferent_access.rb
でactive_support/core_ext/hash/indifferent_access
をrequireすると、requireが循環してしまい、Rubyのwarning(warning: loading in progress, circular require considered harmful
)が出てしまう為。
代わりに、ActiveSupport::HashWithIndifferentAccess
のdocに、Rails外で#with_indifferent_access
を使用したい場合、明示的にactive_support/core_ext/hash/indifferent_access
をrequireする必要がある旨説明を追加しています。
Update mysql adapter error message when disconnected
activerecord/test/cases/adapters/mysql2/connection_test.rb
の修正です。
MySQLのclientのconnectionが接続されてない場合に出力されるエラーメッセージを更新しています。
mysql2
gemの方でエラーメッセージが変更されてしまい、そのエラーメッセージが出力される事を確認するテストがコケるようになってしまった為。参考:Move macro REQUIRE_CONNECTED to client.c (#798) · brianmario/mysql2@f14023f
Update mysql2 version in Gemfile.lock
Gemfile.lock
の修正です。
mysql2
gemのバージョンを0.4.5
に更新しています。
Revert "Made ActiveRecord consistently use ActiveRecord::Type (not"
Active Recordの中でtypeクラスを参照するのにActiveModel
namespace配下のクラスを参照している箇所があったのをActiveRecord
namespace配下のクラスを参照するよう統一した、Made ActiveRecord consistently use ActiveRecord::Type (not · rails/rails@671eb74をrevertしています。
特に意味がある変更では無い、と判断された為revertされたようです。
Add info about updating locking column value
activerecord/lib/active_record/locking/optimistic.rb
のdocの修正です。
ActiveRecord::Locking::Optimistic
moduleのdocに、lock用のカラムの値を更新する時はoptimistic lockingは動作しない旨説明を追加しています。