2025/03/05分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activemodel/CHANGELOG.md
rails guideのWorking with JavaScript in Rails
の修正です。
Turbo Streams
セクション内のグラマーの修正を行っています。
rails guideのWorking with JavaScript in Rails
の修正です。
Ajax Requests
セクションのグラマーの修正を行っています。
Fix channel generator import statement:
actioncable/lib/rails/generators/channel/channel_generator.rb
の修正です。
importmapを使用している場合に、Action Channelのgeneratorがimport出来ないJSのコードを生成するバグがあったのを修正しています。
RuboCop: target the current Ruby version rather than old 2.7 (#54692)
railtiesの修正です。
rails new
で新規にアプリケーションを生成した際に、rubocop.yml
にTargetRubyVersion
を指定するよう修正しています。が、Rubocopは.ruby-version
からRubyのバージョンを取得するようになっており、TargetRubyVersion
を明示的に指定する必要はなかった為、後ほどRevertされています。
Revert "RuboCop: target the current Ruby version rather than old 2.7 (#54692)"
直前のrubocop.yml
に関する修正をRevertしています。
Stop generating bundler binstub:
railtiesの修正です。
rails new
に新規にアプリケーションを生成した際に、bin/bundle
を生成しないよう修正しています。Bundlerのbinstubs
コマンドを使用してbin/bundle
を生成していたのですが、BundlerがBunlderの為のbinstub
を生成しないようになった為。
参考:Stop generating binstubs for Bundler itself
Merge pull request #54682 from claudiob/form_docs
actionview/lib/action_view/helpers/form_options_helper.rb
のdocの修正です。
FormOptionsHelper
のdoc内のメソッド名がAPI docへのリンクになるよう修正しています。
Fix capture view helper to pass keyword arguments
actionview/lib/action_view/helpers/capture_helper.rb
の修正です。
capture
メソッドに指定したキーワード引数を、capture
メソッドに指定したblockの引数として指定出来るよう修正しています。
Merge pull request #54685 from Earlopain/optimize-parameterize
activesupport/lib/active_support/inflector/transliterate.rb
の修正です。
String#parameterize
メソッドについて、不要な場合はregexpによる処理を行わないよう改善しています。
Add except_on:
option for validation callbacks
activemodel/lib/active_model/validations/callbacks.rb
の修正です。
validationメソッドと同様に、validationのcallbacks(before_validation
、after_validation
)にも、特定のcontextの場合に実行をスキップする:except_on
オプションを指定出来るよう修正しています。
Merge pull request #54675 from skipkayhil/hm-lazy-visualizer
actionpack/lib/action_dispatch/journey/router.rb
、
actionpack/lib/action_dispatch/journey/routes.rb
の修正です。
lazy routesが有効になっている場合に、routerのfsm visualizerが正しく生成されないバグがあったのを修正しています。
Move test helpers into test_helpers (#54688)
railties/lib/rails/generators/rails/authentication/authentication_generator.rb
の修正です。
authentication
generatorが生成するテスト用のhelperファイルの名前をhelpers
からtest_helpers
に修正しています。
Allow per-database schema format in database config
Active Recordの修正です。
schema_format
をdatabaseのconfigファイルに指定出来るよう修正しています。複数DBの設定をしていて、DB毎に異なるformatを指定した時の為、との事です。
primary: schema_format: ruby
[ci skip]Fix the incorrect version where allow_browser
was added in the guide
rails guideのAction Controller Advanced Topics
の修正です。
allow_browser
メソッドが追加されたRailsのバージョンの説明が誤っていたのを修正しています。