なるようになるブログ

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

rails commit log流し読み(2020/08/12)

2020/08/12分のコミットです。

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


fix: warning: instance variable @controller not initialized

actionpack/lib/action_dispatch/testing/assertions/routing.rbの修正です。

warning: instance variable @controller not initializedのwarningが出ていたのを対応しています。


Document the --database/--db option for multiple database Rails application [skip ci]

rails guideのThe Rails Command Lineの修正です。

bin/rails dbconsoleについて説明している箇所に、primary以外のDBに接続する方法についての説明を追加しています。


Identify directly-uploaded blobs before saving the associated record

Active Storageの修正です。

direct upload実行時にblobのcontent typeのチェック処理が行われてない(content typeの設定が親レコードの保存後に行われていた)のを、content typeの設定順を修正し、親レコード保存時にチェック処理が行われるよう修正しています。


Updated security.md to include default_protect_from_forgery

rails guideのSecuring Rails Applicationsの修正です。

CSRF Countermeasuresの項に、config.action_controller.default_protect_from_forgery configについての説明を追加しています。


Address ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true

actionview/test/abstract_unit.rbの修正です。

Action Viewのunit testでArgumentErrorが発生してしまう事があったのを対応しています。


Merge pull request #39971 from jonathanhefner/docs-baseline-defaults

rails guideのConfiguring Rails Applicationsの修正です。

load_defaultsで値が設定されるconfigについて、load_defaultsで設定される前の元の値についてまとめて説明したBaseline defaults:セクションを追加しています。