未验证 提交 3efb10f8 编写于 作者: B bogdanvlviv

Fix `new_framework_defaults_6_0.rb`

`default_enforce_utf8` belongs to `config.action_view`

Update info about `:skip_enforcing_utf8` since we can change default
behavior via `config.action_controller.default_enforce_utf8`

Related to #32125
上级 39d2cde6
...@@ -610,8 +610,8 @@ def apply_form_for_options!(record, object, options) #:nodoc: ...@@ -610,8 +610,8 @@ def apply_form_for_options!(record, object, options) #:nodoc:
# unnecessary unless you support browsers without JavaScript. # unnecessary unless you support browsers without JavaScript.
# * <tt>:local</tt> - By default form submits are remote and unobtrusive XHRs. # * <tt>:local</tt> - By default form submits are remote and unobtrusive XHRs.
# Disable remote submits with <tt>local: true</tt>. # Disable remote submits with <tt>local: true</tt>.
# * <tt>:skip_enforcing_utf8</tt> - By default a hidden field named +utf8+ # * <tt>:skip_enforcing_utf8</tt> - If set to true, a hidden input with name
# is output to enforce UTF-8 submits. Set to true to skip the field. # utf8 is not output.
# * <tt>:builder</tt> - Override the object used to build the form. # * <tt>:builder</tt> - Override the object used to build the form.
# * <tt>:id</tt> - Optional HTML id attribute. # * <tt>:id</tt> - Optional HTML id attribute.
# * <tt>:class</tt> - Optional HTML class attribute. # * <tt>:class</tt> - Optional HTML class attribute.
......
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
# Read the Guide for Upgrading Ruby on Rails for more info on each option. # Read the Guide for Upgrading Ruby on Rails for more info on each option.
# Don't force requests from old versions of IE to be UTF-8 encoded # Don't force requests from old versions of IE to be UTF-8 encoded
# Rails.application.config.action_controller.default_enforce_utf8 = false # Rails.application.config.action_view.default_enforce_utf8 = false
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册