なるようになるブログ

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

rails commit log流し読み(2016/09/20)

2016/09/20分のコミットです。

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

activerecord/CHANGELOG.md


Merge pull request #26447 from kamipo/reduce_array_allocation

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

ActiveRecord::Relation::WhereClauseFactory#buildで引数がHashの場合に不要な空配列を生成しないよう修正しています。


Always store errors details information with symbols https://github.com/rails/rails/commit/d406014b03e08d85277228ef0f71f2e8464a8cbf

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

associationのautosaveでエラーになった際に、errors detailsに値がStringとして格納されていたのを、Symbolとして保持するよう修正しています。

# before
molecule.errors.details["electrons.name"]

# after
molecule.errors.details[:"electrons.name"]

Errors#addErrors#messagesはすべてSymbolで値を取り扱うようになっており、それに合わせる為。


fix link to resque [ci skip]

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

resqueへのリンクが壊れてしまっていたのを修正しています。


Restore missing Gemfile.lock entries

Gemfile.lockの修正です。

Override the github git source instead of changing manually all entries · rails/rails@12d5c21の対応で消えてしまったgemのentryがあったのを戻しています。