Actions
Feature #14255
closedDeprecate $SAFE support in ERB
Feature #14255:
Deprecate $SAFE support in ERB
Description
See https://bugs.ruby-lang.org/issues/14250.
Proc-level $SAFE change does no longer make sense. This should be deprecated and then removed. But the problem is that the position of safe_level argument is in the middle of argument list of ERB#initialize.
So to remove it safely, we should make them keyword arguments and deprecate the current non-keyword-argument interface. Having both interfaces would be backward-compatible because all of arguments don't take {}.
before¶
after¶
Actions