なるようになるブログ

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

rails commit log流し読み(2017/11/24)

2017/11/24分のコミットです。

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


Avoid connecting to GCS during app boot

activestorage/lib/active_storage/service/gcs_service.rbの修正です。

Service::GCSServiceクラスの初期化時にGoogle::Cloud::Storageへのコネクションを接続していたのを、実際に処理を行う際にコネクションを接続するよう修正しています。


Correct render method's response header's content type for option(:body) from text/html to text/plain. (#31212)

rails guideのLayouts and Rendering in Railsの修正です。

Rendering raw bodyの項にAction Dispathcのデフォルトのcontenty typeはtext/htmlである旨説明されていたのですが、実際はtext/plainな為、説明を修正しています。


Rubocop style

railties/lib/rails/command/helpers/editor.rbの修正です。

frozen_string_literalの指定を追加しています。