You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Link to Deprecation::Behavior in configuring guide
The current list of options for `config.active_support.deprecation`
was missing the newly added `:report` option. Instead of adding the
missing option and continuing to keep 4 different lists of the same
options in sync, I opted to replace the list with a link to the
options in the Behavior API docs. This had the additional advantage of
giving more information about all of the options which was not
mentioned in the Configuring guide.
- Use symbols for Behavior options
It felt to me like naming the options did not make it explicit that
those were the symbols to pass to `#behavior=`, but by adding the `:`
that becomes more clear.
- Add some API links
There were a few references to `behavior=`, but we may as well link to
the actual method.
Copy file name to clipboardExpand all lines: guides/source/configuring.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2537,15 +2537,25 @@ The default value depends on the `config.load_defaults` target version:
2537
2537
2538
2538
#### `config.active_support.deprecation`
2539
2539
2540
-
Configures the behavior of deprecation warnings. The options are `:raise`, `:stderr`, `:log`, `:notify`, and`:silence`.
2540
+
Configures the behavior of deprecation warnings. See
2541
+
[`Deprecation::Behavior`][deprecation_behavior] for a description of the
2542
+
available options.
2541
2543
2542
-
In the default generated `config/environments` files, this is set to `:log`for development and`:stderr`fortest, and it is omitted for production in favor of [`config.active_support.report_deprecations`](#config-active-support-report-deprecations).
2544
+
In the default generated `config/environments` files, this is set to `:log`for
2545
+
development and`:stderr`fortest, and it is omitted for production in favor of
Configures the behavior of disallowed deprecation warnings. The options are `:raise`, `:stderr`, `:log`, `:notify`, and`:silence`.
2552
+
Configures the behavior of disallowed deprecation warnings. See
2553
+
[`Deprecation::Behavior`][deprecation_behavior] for a description of the
2554
+
available options.
2547
2555
2548
-
In the default generated `config/environments` files, this is set to `:raise`for both development andtest, and it is omitted for production in favor of [`config.active_support.report_deprecations`](#config-active-support-report-deprecations).
2556
+
In the default generated `config/environments` files, this is set to `:raise`
2557
+
for both development andtest, and it is omitted for production in favor of
0 commit comments