2018/01/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Ignores a default subclass when becomes(Parent)
activerecord/lib/active_record/persistence.rb
の修正です。
STIを使用している、かつ、typeにデフォルト値が指定されている場合に、サブクラスでbecome(Parent class)
を指定した場合に、戻り値がParentではなく、デフォルトに指定されているclassになってしまうバグがあったのを修正しています。
Add support for connection pooling on RedisCacheStore
Active Supportの修正です。
redis cache storeにconnection poolingのサポートを追加しています。Support for connection pooling on mem cache storeのredis cache store版。
pool_sizeオプションを指定した場合のみconnection poolが使用されるようになっています。connection pool部分の実装は同じくmperham/connection_pool gemを使用しています。
Support for PostgreSQL foreign tables
activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
、
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
の修正です。
PostgreSQLのforeign tablesについてのサポートを追加しています。
これにより、foreign tablesで定義されたtableも、普通のtableやviewと同様にActive Recordから操作出来るようになっています。
Fix building has_one through record
activerecord/lib/active_record/associations/has_many_through_association.rb
、
activerecord/lib/active_record/associations/has_one_through_association.rb
の修正です。
has_one through associationを使用している場合に、associationに対するbuild処理でエラーになってしまうバグがあったのを修正しています。
Update guide text not to contradict image
rails guideのGetting Started with Rails
の修正です。
Getting Up and Running
の項、ActionController::UnknownFormat
が出た場合の説明で、エラーが発生した場合の画像で一部行を切り捨てている旨説明がされていたのですが、実際は切り捨てられてはいなかった為、該当の説明を削除しています。
rails guideのGetting Started with Rails
の修正です。
Getting Up and Running
の項のグラマーの修正を行っています。
activestorage/lib/active_storage/downloading.rb
の修正です。
不足していたtmpdir
のrequireを追加しています。
Improve fault tolerance for redis cache store
activesupport/lib/active_support/cache/redis_cache_store.rb
、
activesupport/test/cache/behaviors.rb
の修正です。
redis cache storeのincrement
、decrement
、及び、read_multi
でredis serverに接続出来なかった場合に、exceptionがraiseされていたのを、exceptionがraiseされないよう修正しています。
他のメソッド(write_entry
やwrite_multi_entries
等)ではそのような挙動になっていたのと、mem cache storeと挙動を合わせる為、のようです。
Fix locale_selector JS bug in ActionMailer Preview
railties/lib/rails/templates/rails/mailers/email.html.erb
の修正です。
Action Mailerのemail previewでlocaleが一つしか無い場合に、mimeを切り替えるとJSでエラーになってしまうバグがあったのを修正しています。