なるようになるブログ

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

rails commit log流し読み(2014/09/10)

2014/09/10分のコミットです。

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


Removed any default margin from body.

railties/lib/rails/templates/rails/mailers/email.html.erbの修正です。

body { margin: 0; }のを追加しています。


[ci skip] application.rb -> development.rb in web-console docs

rails guideのA Guide for Upgrading Ruby on Railsの修正です。

web-consoleの項で、web-consoleの設定を行う箇所がapplication.rbになっていたのを、development.rbに修正しています。devだけの設定なので。


Tell the user which file is missing when config/database.yml was not found

railties/lib/rails/application/configuration.rbの修正です。

database.yml が存在しなかった場合に、エラーメッセージにそのファイル名を出力するよう修正しています。

# before
Cannot load `Rails.application.database_configuration`:
Could not load database configuration. No such file -  (RuntimeError)

# after
Cannot load `Rails.application.database_configuration`:
Could not load database configuration. No such file - ["config/database.yml"]

[ci skip]Correct variables in the sample code

actionpack/lib/action_dispatch/http/mime_type.rbのdocの修正です。

mime typeを設定するサンプルで、変数名に誤りがあったのを修正しています。