なるようになるブログ

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

rails commit log流し読み(2018/01/05)

2018/01/05分のコミットです。

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


Partial revert the changing default value of readonly_value

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

ActiveRecord::Relationに設定及び取得を行う為のメソッド(#set_value、#get_value)を追加した、Remove over meta programming in AR::Relationの対応でWhereChainクラスのDEFAULT_VALUESも変更していたのを元に戻しています。default valueを変更する必要はなかった為。


Move the options for deliver_later up near to the example [ci skip]

actionmailer/lib/action_mailer/message_delivery.rbのdocの修正です。

deliver_later!及びdeliver_laterメソッドのdocでメソッドのオプションについての説明を、exampleの後に移動しています。


Remove passing argument to singular and collection association readers

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

association reader用メソッドから使用していない引数を削除しています。


Add missing require for strip_heredoc

actionpack/lib/action_controller/metal/request_forgery_protection.rbの修正です。

不足していたactive_support/core_ext/string/stripのrequireを削除しています。


Consolidate queue_adapter= and interpret_adapter

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

Provides friendlier way to access queue adapters of a job.以降、`ActiveJob::QueueAdapter#queue_adapter=メソッドがinterpret_adapterメソッドを呼び出すだけになってしまっていたので、interpret_adapterメソッドを削除し、queue_adapter=メソッドの方で処理を定義するよう修正しています。