2024/11/23分のコミットです。
CHANGELOGへの追加はありませんでした。
Add missing backticks to config header
rails guideのConfiguring Rails Applications
の修正です。
config名の末尾にバッククォートが不足していたのを修正しています。
Match heading level to siblings
rails guideのConfiguring Rails Applications
の修正です。
config.action_dispatch.strict_freshness
の見出しの段落他のconfigとあっていなかったのを修正しています。
Merge pull request #53387 from bogdan/bug-date-input-inline-value-nil
actionview/lib/action_view/helpers/tags/datetime_field.rb
の修正です。
date_field
のvalue
にnilを指定した場合に、値がnilにならない(デフォルトの値が設定される)バグがあったのを修正しています。
Use path instead of url in auth session controller (#53718)
railties/lib/rails/generators/rails/authentication/templates/app/controllers/sessions_controller.rb.tt
の修正です。
authentication
geneartorが生成するファイルで、redirectに指定するpathにxx_url
を使用していたのを、xx_path
を指定するよう修正しています。同じドメイン内のアプリケーションでredirectを行うなら、xx_path
で問題無い為。
Fix incorrect statement about Action Pack and Action View in documentation
actionpack/lib/action_controller/base.rb
のdocの修正です。
ActionController::Base
classのdocに、Action ViewはAction Packの一部である旨説明が記載されていたのを修正しています。現在はAction ViewはAction Packから分離して独立したコンポーネントになっている為。
Merge pull request #53697 from skipkayhil/hm-mysql-prepared-statements
activerecord/test/support/connection.rb
の修正です。
テスト実行時に出力する使用しているconnection名のログに、prepared statementsが有効化どうかも含むよう修正しています。
Merge pull request #53717 from westonganger/recommend_arel_sql_instead_of_sanitize_sql_array
activerecord/lib/active_record/sanitization.rb
のdocの修正です。
sanitize_sql_array
メソッドのdocに、Arel.sql
の方がsanitize_sql_array
より適切な場合がある旨説明を追加しています。
Preserve duplicate columns in ActiveRecord::Base#select
activerecord/lib/active_record/relation/merger.rb
、
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
select
メソッドに同じカラム名を複数指定した場合に、実行されるSQLでカラム名は1つに丸め込まれていたのを、複数指定された場合そのままSQLでも複数指定するよう修正しています。
# before Post.select(:id, :id) # => "SELECT 'a' FROM \"users\"" # after Post.select(:id, :id) # => "SELECT 'a', 'a' FROM \"users\""
Don't want to duplicate untouched values on merge
activerecord/lib/active_record/relation/merger.rb
の修正です。
先の対応の影響で、merge
メソッドを実行する度に、ユーザが明示的に指定していない元のselect
に含まれていたカラムが、select
の対象に追加されるようになってしまっていたのを、追加されないよう修正しています。