なるようになるブログ

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

rails commit log流し読み(2014/11/15)

2014/11/15分のコミットです。

CHANGELOGへの追加はありませんでした。


Simplify and fix grammar

rails gudideのA Guide to Testing Rails Applicationsの修正です。

Rake Tasks for Running your Testsの項につついて、説明の簡略化、グラマーの修正を行っています。


Revert "Improve performance of AR object instantiation"

Improve performance of AR object instantiationをrevertしています。

ActiveRecordインスタンス生成の改善処理だったのですが、よいやり方では無かったとの事でrevertしています。以降のコミットで、違うアプローチでの対応が行われています。


Reduce the amount of work performed when instantiating AR models

ActiveRecordインスタンス生成処理の改善対応です。

ActiveRecordインスタンス生成時に全てのattributeの生成を行うのを止め、必要になった時にattributeの生成処理を行うよう修正しています。

遅延処理につていは、新規に作成したLazyAttributeHashクラスで処理を行っています。


Correctly determine if an attribute is uninitialized

activerecord/lib/active_record/attribute_set/builder.rbの修正です。

先に作成したLazyAttributeHashクラスのtypeのチェック処理に誤りがあったのを修正しています。


Allow LazyAttributeHash to be marshalled

activerecord/lib/active_record/attribute_set/builder.rbの修正です。

LazyAttributeHashクラスをmarshalで扱えるようにする為に、default_procを使用しないよう修正しています。


Don't freeze the same hash we use for memoization

activerecord/lib/active_record/attribute_set/builder.rbの修正です。

LazyAttributeHashがfreezeされていた場合、RuntimeErrorをraiseするよう修正しています。

メモ化の為との事です。


[ci skip] add "Qu" to Backends Features list

activejob/lib/active_job/queue_adapters.rbのdocの修正です。

ActiveJobで使えるバックエンドの機能一覧に"Qu"が漏れていたので、追加しています。