2020/12/01分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
ActionView::Helpers::FormBuilder#id
returns the value of the<form>
element'sid
attribute. With amethod
argument, returns theid
attribute for a form field with that name.ActionView::Helpers::FormBuilder#field_id
returns the value generated by the FormBuilder for the given attribute name.
Added test cases for Action Mailbox generator
railties/test/generators/action_mailbox_install_generator_test.rb
の修正です。
Action Mailbox generatorのテストを追加しています。
Unify decorate_attribute_type
and attribute
Active Recordの修正です。
decorate_attribute_type
とattribute
をマージしています。attributes
がtypeとvalueを個別に設定出来るようにするた為。
Fix the return value of #deep_transform_keys from a Hash to a HashWithIndifferentAccess
activesupport/lib/active_support/core_ext/hash/keys.rb
の修正です。
`HashWithIndifferentAccess#deep_transform_keys
の戻り値がHash
になっていたのをHashWithIndifferentAccess
になるよう修正しています。
Always recommend config.asset_host in examples
docの修正です。
asset_host
の設定をするexampleに、config.action_controller
やconfig.action_mailer
経由で設定するようになっている箇所があったのを、config.asset_host
経由で設定するよう修正しています。
Merge pull request #40709 from francois-ferrandis/update-guide-on-delivery-method-in-callbacks
rails guideのAction Mailer Basics
の修正です。
callback について説明しているexampleコードで、インスタンス変数をbefore_action
のblock内で直接行っていたのを、メソッドで行うよう修正しています。
Merge pull request #40503 from juanmanuelramallo/increase-worker-timeout-in-development
railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt
の修正です。
RAILS_ENV
がdevelopment
の場合に、worker_timeout
に3600
を指定するよう修正しています。
Puma 5からworkerのtimeout checkが導入されたのですが、その影響で、開発時にbyebug
を使ってデバッグしていてレスポンスが返るのに時間が掛かるような場合に、timeoutが発生するようになってしまいました。
デバッグをしているような場合にtimeoutが発生するのを避ける為、development
envの場合のみworker_timeout
に長めの値を指定するよう修正しています。
Merge pull request #40045 from sandip-mane/40041-hosts-case-fix
actionpack/lib/action_dispatch/middleware/host_authorization.rb
の修正です。
Host Authorizationで許可されたホストのチェックをする際に、case-insensitive matchingを行うよう修正しています。
Declare ActionView::Helpers::FormBuilder#id
Action Viewの修正です。
指定されたattribute nameで生成されたidを取得する為のActionView::Helpers::FormBuilder#field_id
メソッド、及び、<form>
エレメントの id
attributeを取得する為のActionView::Helpers::FormBuilder#id
メソッドを追加しています。
activejob/lib/active_job/railtie.rb
の修正です。
config.active_job
に不正なkeyが指定された場合にエラーになるよう修正しています。
Mark scrub as an unsafe method on SafeBuffer
activesupport/lib/active_support/core_ext/string/output_safety.rb
の修正です。
SafeBuffer
のunsafe methodの一覧にscrub
メソッドを追加しています。
Merge pull request #40663 from amatsuda/keep_safe_buffer
activesupport/lib/active_support/core_ext/string/output_safety.rb
の修正です。
ActiveSupport::SafeBuffer#[]
、*
メソッドで戻り値をSafeBuffer
のインスタンスとなるよう修正しています。
Ruby 3では、サブクラスのインスタンスで呼び出されたときに、すべてのStringメソッドがStringのインスタンスを返す、という非互換が導入されており、その非互換を避けRuby 2までと同じ挙動になるようにする為に修正を行っています。