なるようになるブログ

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

rails commit log流し読み(2017/09/17)

2017/09/17分のコミットです。

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

railties/CHANGELOG.md


Merge pull request #30617 from y-yagi/dont_expose_activestorage_routes

activestorage/config/routes.rbの修正です。

Active Storageで定義されているroutesをユーザに表示しないよう修正しています。

これらのroutesはActive Storageが内部で使用する為のroutesで、ユーザが直接使用するroutesではない為。


Remove frozen_string_literal magic comment from templates

railtiesの修正です。

各templateファイルからfrozen_string_literal: trueを削除しています。 Remove frozen_string_literal magic comment from templatesのフォローアップ対応。


Add local option to Message form [ci skip]

activestorage/README.mdの修正です。

Active Storageのexample内のform_withメソッドの引数にlocal: trueを指定しています。XHRで処理を行う想定のexampleでは無い為。


Fix file missing in activestorage’s example code [ci skip]

Active Storageのdocの修正です。

ファイルを直接オープンする場合のexampleの、ファイルパスを絶対パスで指定するよう修正しています。


Update plugins.md [ci skip]

rails guideのThe Basics of Creating Rails pluginsの修正です。

Add a Class Methodの項、test/dummyをバッククォートで囲むよう修正しています。


Fix docs describing rollback [ci skip]

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

doc内のrollback処理について説明している箇所でmigratetaskを使用していたのを、rollback taskを使用するよう修正しています。


Add mini_magick to default Gemfile as comment

railties/lib/rails/generators/rails/app/templates/Gemfileの修正です。

デフォルトで生成されるGemfileにmini_magickを追加しています。

Active Storageで画像のtransformを使用する際に必要な為。

Provide initialization of Active Storageの方の対応に含まれてるかと思ったのですが、こっちはGemfileの修正は入って無いのかー。