2022/11/19はコミットはありませんでした。
rails commit log流し読み(2022/11/18)
2022/11/18分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activesupport/lib/active_support/current_attributes.rb
の修正です。
ActiveSupport::CurrentAttributes.resets
に実行する処理のメソッド名を指定出来るよう修正しています。
class Current < ActiveSupport::CurrentAttributes resets { Time.zone = nil } resets :clear_time_zone end
Merge pull request #46505 from ytjmt/fix-testing-guide
rails guideのTesting Rails Applications
の修正です。
Fixtures in Action
の項にある、PostgreSQLのpermissionsに関する記事のリンク先が404になっていたのを修正しています。
rails commit log流し読み(2022/11/17)
2022/11/17分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Support optional collation in create_table output.
activerecord/test/cases/adapters/mysql2/table_options_test.rb
の修正です。
create_table
の出力にcollation
が含まれている場合もテストが通るよう修正しています。MariaDB 10.9.4でcollation
が出力されるようになった為。
Merge pull request #46362 from nycdotnet/connection-pool-docs [ci-skip]
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
のdocの修正です。
connectionは何かSQLを実行するメソッドが呼ばれた場合に自動でconnection poolから取得される事、及び、with_connection
メソッドは、既に取得済みのconnectionを保持している場合poolからの取得処理は行われない、等の挙動の詳細についての説明を追加しています。
Merge pull request #46265 from bdewater/query-logs-docs [ci-skip]
activerecord/lib/active_record/query_logs.rb
のdoc、及び、
rails guideのDebugging Rails Applications
の修正です。
ActiveRecord::QueryLogs
のdocにQuery Logsに関するconfigやSQLCommenterに関する説明を追加、及び、Debugging Rails Applications
guideにSQLのコメントについて説明したSQL Query Comments
セクションを追加しています。
Use 2 spaces for identation in ActiveSupport code examples [ci-skip]
Active Supportのdocの修正です。
各doc内のコードexampleで、インデントにスペース2つを使うよう統一しています。
Use 2 spaces for identation in ActionView code examples [ci-skip]
Action Viewのdocの修正です。
各doc内のコードexampleで、インデントにスペース2つを使うよう統一しています。
Raise on assignment to readonly attributes
Active Recordの修正です。
readonly attributesに値を設定した場合、値の設定が出来てしまっていた(DBに保存はされない)のを、exceptionをraiseするよう修正しています。互換性の為、デフォルトは元の挙動のままになっており、config.active_record.raise_on_assign_to_attr_readonly
にtrueを指定した場合(load_defaults 7.1
で指定される)のみexceptionをraiseするようになっています。
rails commit log流し読み(2022/11/16)
2022/11/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #46478 from jonathanhefner/app_generator_test-run_generator_and_bundler
railties/test/generators/app_generator_test.rb
の修正です。
app generatorのテストで、Bunlderのstub処理をメソッドに切り出しています。
docの修正です。
各docのタイポの修正を行っています。
docの修正です。
doc内のメソッド名やファイル名などのフォーマットが正しく指定されてない箇所があったのを修正しています。
Auto-link code references [ci-skip]
docの修正です。
doc内で他のメソッドなどを言及している箇所で、そのメソッドのAPI docにリンクがされるよう修正しています。
Remove unnecessary link markup [ci-skip]
docの修正です。
doc内で他のメソッドなどを言及している箇所で、不要なリンクのマークアップの記述があったのを削除しています。
Document ActiveModel::Type::Time as time of day [ci-skip]
activemodel/lib/active_model/type/time.rb
のdocの修正です。
ActiveModel::Type::Time
のdoc内のコードexampleを、ActiveModel::Type::Time
に渡された文字列はdateとtime zoneが自動でノーマライズされる(timeの値のみ指定された値が使用される)、という挙動ががわかるよう修正しています。
Replace ActionController::UrlFor references [ci-skip]
actionpack/lib/action_dispatch/routing/url_for.rb
のdocの修正です。
現在は存在しないActionController::UrlFor
を参照している箇所があったのを、移行後のクラスであるActionDispatch::Routing::UrlFor
を参照するよう修正しています。
Tweak AD::Http::FilterParameters code example [ci-skip]
actionpack/lib/action_dispatch/http/filter_parameters.rb
のdocの修正です。
ActionDispatch::Http::FilterParameters
のdoc内の、挙動についての説明の言い回しの修を行っています。
Update ActionController::UrlFor request contract [ci-skip]
actionpack/lib/action_controller/metal/url_for.rb
の修正です。
ActionController::UrlFor
のdoc内の、request
変数の挙動について、現在と挙動と異なっている説明になっていたのを修正しています。
Clarify numeric casting behavior for blank strings [ci-skip]
Active Modelのdocの修正です。
numeric casting処理で、空文字が指定された場合の挙動についての説明を追加しています。
Elaborate doc for attribute read and write methods [ci-skip]
Active Recordのdocの修正です。
attributeのread、writeメソッドの挙動についての詳細な説明を追加しています。
Add *_check_constraint actions to Migrations guide [ci-skip]
rails guideのActive Record Migrations
の修正です。
Migrationメソッドの一覧に、check_constraint
関連のメソッドを追加しています。
rails guideのThe Rails Command Lineの修正です。
yaml
のexampleを記載している箇所のコードハイライトが正しく表示されるよう修正しています。
Fix link to "Conditional GET Support" section [ci-skip]
rails guideのSecuring Rails Applications
の修正です。
他guideへのリンク先の指定が誤っている箇所があったのを修正しています。
Add MDN links for security headers [ci-skip]
rails guideのSecuring Rails Applications
の修正です。
HTTPヘッダーについて説明している箇所に、MDNへのリンクを追加しています。
Fix Active Record Encryption credentials example [ci-skip]
rails guideのActive Record Encryption
の修正です。
Rotating Keys
の項にあるyamlのexampleで、keyの指定が誤っていたのを修正しています。
Merge pull request #46485 from RubyElders/nodoc-all-arel-files
activerecord/lib/arel/filter_predications.rb
、
activerecord/lib/arel/nodes/filter.rb
のdocの修正です。
private APIであるArelのfilter関係のclassがAPI docに表示されないよう修正しています。
Merge pull request #46484 from RubyElders/leading-join-node-namespace
Active Recordの修正です。
Arel::Nodes::LeadingJoin
クラスがActiveRecord::QueryMethods
module配下に定義されていたのを、Arel
module配下で定義するよう修正しています。
rails commit log流し読み(2022/11/15)
2022/11/15分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Merge pull request #46489 from OuYangJinTing/update-association-preload-doc [ci-skip]
activerecord/lib/active_record/associations.rb
のdocの修正です。
preloadのドキュメントに、instance dependent associationsはpreload出来ない旨説明が記載されていたのを、preloadは可能である旨修正しています。Support preloads on instance dependent associationsでサポートされた為。
refactor ParameterEncodingTest and add test for param_encoding
actionpack/test/controller/parameter_encoding_test.rb
の修正です。
ParameterEncodingTest
について、テスト名やアクション名を適切な名前に変更するなどのリファクタリング、及び、param_encoding
を指定した場合のテストを追加しています。
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
associationのpreload、及び、eager_loadをunscope出来るよう修正しています。
Merge pull request #45932 from marcoroth/migrate-guides-to-turbo
rails guideの修正です。
rails guideでページの表示にTurbolinksを使用していたのを、Turboを使用するよう修正しています。
Merge pull request #46410 from lazaronixon/fix-touch-has-one-parent
activerecord/lib/active_record/touch_later.rb
の修正です。
associationのtouch
処理を伝搬する際に、親modelのhas_one
で定義されているassciationに対してもtouch
処理が行われるよう修正しています。
rails commit log流し読み(2022/11/14)
2022/11/14分のコミットです。
CHANGELOGへの追加はありませんでした。
activerecord/lib/active_record/encryption/extended_deterministic_queries.rb
の修正です。
ActiveRecord::Relation#first_or_initialize
、及び、#first_or_create
メソッドで、encrypted attributesの初期化処理を行うよう修正しています。
Bump error_highlight 0.5.1 or higher
Gemfile
の修正です。
error_highlight
gemを0.5.1に更新しています。0.5.0であったエラーになってしまう問題が解決している為。
Enable Lint/DuplicateMagicComment
cop
.rubocop.yml
の修正です。
Lint/DuplicateMagicComment
copを追加しています。
rails commit log流し読み(2022/11/13)
2022/11/13分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Update active_record_basics.md
rails guideのActive Record Basics
の修正です。
Delete
処理について説明している箇所のグラマーの修正を行っています。
Replace hardcoded edge links in guides
rails guideの修正です。
API docへのリンク先がedgeapi.rubyonrails.orgになっている箇所があったのを、api.rubyonrails.orgに修正しています。
Add filtering of encrypted attributes in #inspect
activerecord/lib/active_record/encryption/configurable.rb
、
activerecord/lib/active_record/railtie.rb
の修正です。
encrypted attributesを自動でfilter対象に追加するよう修正しています。inspect
でencrypted attributesの値が表示されるのを避ける為。このfilter処理を無効化したい場合、config.active_record.encryption.add_to_filter_parameters
にfalseを指定すればよいようになっています。