2024/10/04分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Raise an
ArgumentError
when invalid:on
or:except
options are passed into#resource
and#resources
.
Fix tests to pass on ruby-head
activemodel/test/cases/type/date_time_test.rb
、
railties/test/commands/routes_test.rb
の修正です。
ruby-headでテストが通るようにする為、routeのsource locationの行数をチェックしたテストを修正(routeのsource locationはRubyのバージョンによって変わる可能性がある為)、Hash#inspect
の結果をチェックしている箇所を修正(Hash#inspect with colon style で結果が変更になったため)しています。
rails guideのWorking with JavaScript in Rails
の修正です。
Ajax Requests
セクション内のタイポを修正しています。
Bug report templates should use ActiveSupport::TestCase not raw Minitest::Test
bug report templatesの修正です。
templatesで使用するテストクラスをMinitest::Test
からActiveSupport::TestCase
に変更しています。Railsが提供している独自のassertionメソッド等を使用出来るようにする為。
Fix remove_column API doc [ci-skip]
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
のdocの修正です。
remove_column
メソッドのdoc内のif_exists
オプションについて説明している箇所のタイポを修正しています。
Allow ActiveRecord::QueryMethods#pluck
to accept hash args with symbol & string values
activerecord/lib/active_record/relation/calculations.rb
の修正です。
ActiveRecord::Base#pluck
にvalueがsymbolまたはstringのhashを指定出来るよう修正しています。
Post.joins(:comments).pluck(:id, comments: :id) Post.joins(:comments).pluck("id", "comments" => "id")
[Fix #51463] Raise an error when invalid :on
or :except
options are given to #resource
or #resources
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
routingの#resource
及び#resources
メソッドにサポートしていないオプションが指定された場合に、ArgumentError
をraiseするよう修正しています。