2022/05/19分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activemodel/CHANGELOG.md
Make validators accept lambdas without record argument
Active Modelの修正です。
validatorの引数のlambdaをrecord引数無しで指定出来るよう修正しています。
validates_comparison_of :birth_date, less_than_or_equal_to: -> { Date.today }
Fix using helpers in content_security_policy
and permissions_policy
actionpack/lib/action_controller/metal/content_security_policy.rb
、
actionpack/lib/action_controller/metal/permissions_policy.rb
の修正です。
content_security_policy
、permissions_policy
でhelperで定義したメソッドを使用出来るよう修正しています。
module ApplicationHelper def pigs_can_fly? false end end content_security_policy do |p| p.default_src "https://example.com" p.style_src "https://example.com" unless helpers.pigs_can_fly? end
Update primary key for dl_keyed_join
activerecord/test/models/destroy_async_parent.rb
の修正です。
テストで使用するassociationのprimary keyの指定が誤っていたのを修正しています。
Improve prefixing routes example in guides [ci-skip]
rails guideのRails Routing from the Outside In
の修正です。
Prefixing the Named Route Helpers
の項にある:as
オプションを指定した場合の詳細な挙動についての説明を追加しています。
Gemfile.lock
の修正です。
bundlerのバージョンを更新しています。
Upgrade Release guide to match current practices
RELEASING_RAILS.md
の修正です。
各種リリース処理に関する説明を、最新の対応内容に合わせて修正しています。
Support declarative-style test name filters
railties/lib/rails/test_unit/runner.rb
の修正です。
bin/rails test
でdeclared nameによるテストのフィルターを指定出来るよう修正しています。