なるようになるブログ

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

rails commit log流し読み(2020/07/25)

2020/07/25分のコミットです。

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

activesupport/CHANGELOG.md


prevents raw redis and memcached compression

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

RedisCacheStore / MemCacheStoreでrawで書かれたデータを読み込む際に、不要なcompression処理を行わないよう修正しています。


Add label attribute to

actionview/lib/action_view/helpers/date_helper.rbactionview/lib/action_view/helpers/form_options_helper.rbの修正です。

FormBuilder経由でselectタグを生成した際に、valueが空のoptionタグにlabel attributeが指定されてなかっのを、select_tagメソッド同様に空のlabelを指定するよう修正しています。


Simplify apply_{start,finish}_limit

activerecord/lib/active_record/relation/batches.rbactiverecord/lib/active_record/relation/predicate_builder.rbの修正です。

apply_{start,finish}_limitメソッド内の共通処理をメソッドに切り出しています。


Fix argument naming in AbstractStore#set_cookie

actionpack/lib/action_dispatch/middleware/session/abstract_store.rbの修正です。

AbstractStore#set_cookieメソッドの引数名をオーバライドしている元のメソッドの引数名と同じにするよう修正しています。


Build symbols descending from stars with regexp

Action Packの修正です。

ast構築時にStar用のregexpを指定していたのを、初期化の段階で渡すようにして、ast構築時の処理を減らすよう修正しています。


Remove redundant column_name.to_s

activerecord/lib/active_record/persistence.rbactiverecord/lib/active_record/relation/predicate_builder.rbの修正です。

不要なcolumn_nameのStringへの変換処理を削除しています。


Always use faster HomogeneousIn in array handler

activerecord/lib/active_record/relation/predicate_builder/array_handler.rbの修正です。

array handlerでbuildする際にHomogeneousInを使用するよう修正しています。