|
20 | 20 | # end |
21 | 21 | # end |
22 | 22 | # |
23 | | -# Renders `{"key":"\u2028\u2029\u003c\u003e\u0026"}` with the previous default, but `{"key":"
<>&"}` with the config |
| 23 | +# Renders `{"key":"\u2028\u2029\u003c\u003e\u0026"}` with the previous default, but `{"key":"<>&"}` with the config |
24 | 24 | # set to `false`. |
25 | 25 | # |
26 | 26 | # Applications that want to keep the escaping behavior can set the config to `true`. |
27 | 27 | #++ |
28 | | -# Rails.configuration.action_controller.escape_json_responses = false |
| 28 | +Rails.configuration.action_controller.escape_json_responses = false |
29 | 29 |
|
30 | 30 | ### |
31 | 31 | # Skips escaping LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) in JSON. |
32 | 32 | # |
33 | 33 | # Historically these characters were not valid inside JavaScript literal strings but that changed in ECMAScript 2019. |
34 | 34 | # As such it's no longer a concern in modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset. |
35 | 35 | #++ |
36 | | -# Rails.configuration.active_support.escape_js_separators_in_json = false |
| 36 | +Rails.configuration.active_support.escape_js_separators_in_json = false |
37 | 37 |
|
38 | 38 | ### |
39 | 39 | # Raises an error when order dependent finder methods (e.g. `#first`, `#second`) are called without `order` values |
|
43 | 43 | # The current behavior of not raising an error has been deprecated, and this configuration option will be removed in |
44 | 44 | # Rails 8.2. |
45 | 45 | #++ |
46 | | -# Rails.configuration.active_record.raise_on_missing_required_finder_order_columns = true |
| 46 | +Rails.configuration.active_record.raise_on_missing_required_finder_order_columns = true |
47 | 47 |
|
48 | 48 | ### |
49 | 49 | # Controls how Rails handles path relative URL redirects. |
|
58 | 58 | # Applications that want to allow these redirects can set the config to `:log` (previous default) |
59 | 59 | # to only log warnings, or `:notify` to send ActiveSupport notifications. |
60 | 60 | #++ |
61 | | -# Rails.configuration.action_controller.action_on_path_relative_redirect = :raise |
| 61 | +Rails.configuration.action_controller.action_on_path_relative_redirect = :raise |
62 | 62 |
|
63 | 63 | ### |
64 | 64 | # Use a Ruby parser to track dependencies between Action View templates |
65 | 65 | #++ |
66 | | -# Rails.configuration.action_view.render_tracker = :ruby |
| 66 | +Rails.configuration.action_view.render_tracker = :ruby |
67 | 67 |
|
68 | 68 | ### |
69 | 69 | # When enabled, hidden inputs generated by `form_tag`, `token_tag`, `method_tag`, and the hidden parameter fields |
70 | 70 | # included in `button_to` forms will omit the `autocomplete="off"` attribute. |
71 | 71 | # |
72 | 72 | # Applications that want to keep generating the `autocomplete` attribute for those tags can set it to `false`. |
73 | 73 | #++ |
74 | | -# Rails.configuration.action_view.remove_hidden_field_autocomplete = true |
| 74 | +Rails.configuration.action_view.remove_hidden_field_autocomplete = true |
0 commit comments