なるようになるブログ

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

rails commit log流し読み(2021/04/14)

2021/04/14分のコミットです。

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


Lint Markdown blank lines around headings [ci-skip]

rails guideの修正です。

headingの後に空行を追加するよう修正しています。


Simplify Time.find_timezone! logic

activesupport/lib/active_support/core_ext/time/zones.rbactivesupport/lib/active_support/values/time_zone.rbの修正です。

Time.find_timezone!処理について、[]メソッドでTZInfo::Timezoneの場合の対応も行うようリファクタリングしています。


Remove unused HstorePair constant

activerecord/lib/active_record/connection_adapters/postgresql/oid/hstore.rbの修正です。

使用していないHstorePair定数を削除しています。


Merge pull request #41964 from Shopify/revert-41882-local-store-dup-value

LocalCacheMarshal.dumpの呼び出し回数を減らすようリファクタリングした、Refactor LocalCache to avoid calling Marshal.dump as muchをRevertしています。local cacheでrace_condition_ttlオプションを指定した場合の挙動でリグレッションが発生してしまっていた為。


Upgrade the development Gemfile.lock

Gemfile.lockの修正です。

bundle updateを実行してGemfile.lockを更新しています。


Autocorrect Rubocop roles

各ファイルにRubocopのAutocorrectを実行しています。


Add regression test for #41714

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

null許容していないforeign key + autosaveが正しく処理される事を確認するテストを追加しています。


Merge pull request #41939 from jhawthorn/template_query_all_template_paths

Action Viewの修正です。

Add DidYouMean suggestions for missing templatesで追加されたtemplate pathのサジェスチョン処理用のメソッドで、全てのvirtual pathsを返せるよう修正しています。


Merge pull request #41945 from jbampton/fix-grammar

テスト、doc内のタイポ、及び、グラマーの修正を行っています。


Merge pull request #41960 from seanpdoyle/active-storage-ujs-upload

activestorage/app/assets/javascripts/activestorage.jsの修正です。

Active Storageでujsにsubimit event用の処理を登録する際に、useCaptureオプションを指定するよう修正しています。 Active Storageのdirect uploads + turboを動作させる為に必要な為。

参考: Active Storage direct uploads