なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2019/01/08)

2019/01/08分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activesupport/CHANGELOG.md


Merge pull request #34700 from gmcgibbon/fetch_multi_key_order

activesupport/lib/active_support/cache.rbの修正です。

ActiveSupport::CacheStore#fetch_multiメソッドの戻り値がcache hit、cache missした順に値を返すようになっていたのを、引数のnamesに指定した順に値を返すよう修正しています。


Add load hook for ActionText::RichText

actiontext/app/models/action_text/rich_text.rbの修正です。

ActionText::RichText load時使用する為のaction_text_rich_text hookを追加しています。


:recycle: Fix mysql type map for enum and set

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rbの修正です。

MySQL adapterでENUM型及びSET型のパースを行う際に、値の前にスペースがある(e.g. "ENUM ('one', 'two', 'three')")と値が正しくパース出来ないバグがあったのを修正しています。


Consolidate the duplicated code that building range predicate

Active Recordの修正です。

range predicateの生成処理について、重複している処理をまとめるようリファクタリングしています。