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が使われる)為。