なるようになるブログ

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

rails commit log流し読み(2023/02/02)

2023/02/02分のコミットです。

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


Merge pull request #47211 from jonathanhefner/command-help-bare-namespace

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

bin/rails credentials -hのように、全てのコマンドで-hによるhelpの表示が出来るよう修正しています。


Use infinitive form verb for all task descriptions

全てのコマンド、rake taskのdescriptionでinfinitive form verbを使用するよう修正しています。


Merge pull request #47219 from p8/guides/strict-loading

rails guideのActive Record Query Interfaceの修正です。

strict_loadingについての説明を追加しています。


Remove unintentional array wrap

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

reset_countersメソッドの中でwhereを呼び出す際に、primary_keyオプションをArrayでwrapしていたのですが、このwrapは不要な処理だった為削除しています。


Fix stubbing method with arguments in activerecord/test/cases/explain_test.rb

activerecord/test/cases/explain_test.rbの修正です。

テスト内のexplainメソッドのstub処理が正しく行われてなかったのを修正しています。


Bump rubocop from 1.43.0 to 1.44.1 and fix offenses

rubocopのバージョンを1.44.1に更新、及び、バージョン更新に伴いエラーになったファイルのコードを修正しています。


Fixed the invalid usage of primary_abstract_class

rails guideのMultiple Databases with Active Recordの修正です。

primary_abstract_classを設定で、exampleのprimary_abstract_classの設定方法が誤っていたのを修正しています。


fixed typo in s3 cors policy example for active storage

rails guideのActive Storage Overviewの修正です。

ExposedHeadersExposeHeadersにタイポしていたのを修正しています。


updated name of MaxAgeSeconds to MaxAge in example CORS policy for S3 buckets

rails guideのActive Storage Overviewの修正です。

S3 bucketにCORS policyを設定するexampleで、key名が誤っている箇所があったのを修正しています。


Merge pull request #47194 from camertron/capture_use_buffer

actionview/lib/action_view/buffers.rbactionview/lib/action_view/helpers/capture_helper.rbの修正です。

既にviewでActionView::OutputBufferインスタンスを生成済みの場合、capture helperでそのインスタンスcaptureメソッドを使用して処理を行うよう修正しています。一つのリクエストの処理で同じ@output_bufferが使われるようにする為。