なるようになるブログ

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

rails commit log流し読み(2015/03/13)

2015/03/13分のコミットです。

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


Use a more conservative const_get over constantize

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

QueueAdapter#load_adapterメソッドでadapterクラスを取得する際、定数名の取得にconst_getメソッドを取得するよう修正しています。


Fix typo in the “Testing Your Mailers” docs

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

Keeping the Postman in Checkの項のグラマーの修正を行っています。


[CI SKIP] Correct output of options_for_select

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

options_for_selectのexampleの出力例が、実際の出力と異なっていたのを修正しています。


Return true from head method

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

headメソッドが通常終了時にfalseを返していたのを,trueを返すよう修正しています。

head :ok and return if

という書き方が出来なくなってしまっていたので、修正したとの事です。


[ci skip] correct output of select

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

selectメソッドのexampleの出力例が実際の結果と異なっていたのを修正しています。


QueueAdapters does the lookup

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

adapterクラスを取得するメソッド名をload_adapterからlookup変更しています。

"クラス名"を取得するだけなので、lookupが適切な名前なのでは、という事で変更になったようです。


Update sprockets links to point to rails org

各docの修正です。

sprocketsexecjsgithubへのリンクをそれぞれ、https://github.com/sstephenson/sprockets -> https://github.com/rails/sprocketshttps://github.com/sstephenson/execjs -> https://github.com/rails/execjsに修正しています。


Merge pull request #19291 from hired/return-truthy-value-from-head