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
The Lint/ErbNewArguments cop introduced in #5845 produces messages like "Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments." and "Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: '-') instead."
It would be nice if there was an autocorrect to remove the 2nd arg and convert the subsequent ones to kwargs.
The text was updated successfully, but these errors were encountered:
The
Lint/ErbNewArguments
cop introduced in #5845 produces messages like "Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments." and "Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: '-') instead."It would be nice if there was an autocorrect to remove the 2nd arg and convert the subsequent ones to kwargs.
The text was updated successfully, but these errors were encountered: