なるようになるブログ

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

rails commit log流し読み(2023/08/29)

2023/08/29分のコミットです。

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

actionpack/CHANGELOG.md

activerecord/CHANGELOG.md


Merge pull request #49042 from Shopify/add-parameters-extract-method

actionpack/lib/action_controller/metal/strong_parameters.rbの修正です。

delimiterで区切られたkeyの値を返すためのActionController::Parameters#extract_valueメソッドを追加しています。

params = ActionController::Parameters.new(id: "1_123", tags: "ruby,rails")
params.extract_value(:id) # => ["1", "123"]
params.extract_value(:tags, delimiter: ",") # => ["ruby", "rails"]

Always install sdoc from git

Gemfileの修正です。

sdocのインストールを必ずGitHubの最新コードからから行うよう修正しています。元々はEDGE environmentが指定されている場合のみ最新コードを取得するようになっていたのですが、gemインストール時にはEDGE environmentが指定されておらず、edge branchについては必ず最新コードを使うようにして問題ないだろう、という事で修正されています。


Merge pull request #49034 from akhilgkrishnan/perform_all_later_to_relase_note_7_1

rails guideのRuby on Rails 7.1 Release Notesの修正です。

perform_all_laterメソッドについての詳細な説明を追加しています。


Merge pull request #49035 from akhilgkrishnan/action_mailer_release_note

rails guideのRuby on Rails 7.1 Release Notesの修正です。

Action MailerのNotable changesとDeprecationsについての説明を追加しています。


upsert should accept update_only parameter like upsert_all does

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

upsertメソッドにupdate_onlyパラメータを指定出来ないようになっていたのを、指定出来るよう修正しています。upsert_allと同じパラメータを指定出来るようにする為。


[skip ci] Add deprecations/removals for action-mailer, active-storage and active-job to 7.1 release notes

rails guideのRuby on Rails 7.1 Release Notesの修正です。

Action MailerのRemovalsについての説明を追加しています。


method description added in 7.1 release note

rails guideのRuby on Rails 7.1 Release Notesの修正です。

config.autoload_libconfig.autoload_lib_onceの挙動についての詳細な説明を追加しています。


Merge pull request #49071 from HParker/backfill-relation-batching-changelog

activerecord/CHANGELOG.mdの修正です。

batch処理のメソッドでload済みのrelationが使用出来る場合はSQLを実行せずそのload済みのrelationを使用するよう対応した、Use already loaded relation when batching if possibleについてCHANGELOGにエントリーを追加しています。


Merge pull request #49069 from gmcgibbon/generate_correct_cpk_form_ids

actionview/lib/action_view/record_identifier.rbの修正です。

Composite Primary Keyを使用しているmodelでdom_idの生成が正しく出来てなかったのを修正しています。


Merge pull request #48920 from fidalgo/fidalgo/update-assert_enqueued_with-documentation

activejob/lib/active_job/test_helper.rbのdocの修正です。

assert_enqueued_withメソッドのdocにkeyword argumentsを使用しているjobに対してメソッドを使用しる場合のexampleを追加しています。


[skip ci] ActionPack notable changes and deprecations added to 7.1 release note

rails guideのRuby on Rails 7.1 Release Notesの修正です。

Action PackのNotable changesとDeprecationsについての説明を追加しています。


[skip ci] ActiveStorage notable changes added to 7.1 release note

rails guideのRuby on Rails 7.1 Release Notesの修正です。

Active StorageのNotable changesについての説明を追加しています。