Skip to content

Commit b07fcb8

Browse files
committed
Enable new JSON escape, field autocomplete, and render tracker defaults
1 parent 0107fd4 commit b07fcb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/initializers/new_framework_defaults_8_1.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
#
2828
# Applications that want to keep the escaping behavior can set the config to `true`.
2929
#++
30-
# Rails.configuration.action_controller.escape_json_responses = false
30+
Rails.configuration.action_controller.escape_json_responses = false
3131

3232
###
3333
# Skips escaping LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) in JSON.
3434
#
3535
# Historically these characters were not valid inside JavaScript literal strings but that changed in ECMAScript 2019.
3636
# As such it's no longer a concern in modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset.
3737
#++
38-
# Rails.configuration.active_support.escape_js_separators_in_json = false
38+
Rails.configuration.active_support.escape_js_separators_in_json = false
3939

4040
###
4141
# Raises an error when order dependent finder methods (e.g. `#first`, `#second`) are called without `order` values
@@ -65,12 +65,12 @@
6565
###
6666
# Use a Ruby parser to track dependencies between Action View templates
6767
#++
68-
# Rails.configuration.action_view.render_tracker = :ruby
68+
Rails.configuration.action_view.render_tracker = :ruby
6969

7070
###
7171
# When enabled, hidden inputs generated by `form_tag`, `token_tag`, `method_tag`, and the hidden parameter fields
7272
# included in `button_to` forms will omit the `autocomplete="off"` attribute.
7373
#
7474
# Applications that want to keep generating the `autocomplete` attribute for those tags can set it to `false`.
7575
#++
76-
# Rails.configuration.action_view.remove_hidden_field_autocomplete = true
76+
Rails.configuration.action_view.remove_hidden_field_autocomplete = true

0 commit comments

Comments
 (0)