2023/11/28分のコミットです。
CHANGELOGへの追加はありませんでした。
add missing preposition in sentence
rails guideのGetting Started with Rails
の修正です。
Starting Up the Web Server
の項のグラマーの修正を行っています。
Separate bundle lock
from bundle install
railties/lib/rails/generators/app_base.rb
、
railties/lib/rails/generators/rails/app/app_generator.rb
の修正です。
bin/rails app:template
実行時に、bundle install
と合わせて不要なbundle lock
まで実行されていたのを、bundle lock
は実行しないよう修正しています。
[ci skip] Fix small string typo in docs for ActiveRecord::AttributeMethods::Dirty
activerecord/lib/active_record/attribute_methods/dirty.rb
のdocの修正です。
ActiveRecord::AttributeMethods::Dirty
メソッドのdoc内のexampleコードのタイポを修正しています。
Use --quiet
for bundle install
railties/lib/rails/generators/app_base.rb
の修正です。
rails new
で新規アプリケーションを生成する際に、生成処理の中でbundle install
を実行する際に--quiet
オプションを指定してログを出力しないよう修正しています。テンプレートを指定している場合など、bundle install
が複数回実行される場合にログを減らすようにする為。
Ensure triggers are enabled when operation fails in PostgreSQL
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
の修正です。
PostgreSQLでfixtureのinsertを行う際に、処理がエラーになってもtriggerは必ず実行されるよう修正しています。
ActiveSupport::Testing::Isolation: gracefully handle the subprocess dying
activesupport/lib/active_support/testing/isolation.rb
の修正です。
ActiveSupport::Testing::Isolation
でsubprocessが異常終了した場合に、parent processも終了してしまっていたのを、subprocessでエラーをハンドリングして、parentは処理を継続出来るよう修正しています。
Allow object_id
as a column name for ActiveRecord
activerecord/lib/active_record/attribute_methods.rb
の修正です。
Rails 7.1でcolumn nameにobject_id
を使用出来なくしていたのを、再度使用出来るよう修正しています。polymorphic relationで通常使われる可能性がある(object
に対するrelationだとobject_id
とobject_type
が使われる)為。