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
Not sure if you're aware, but there's a cop for this now: rubocop/rubocop-rails#1336
It is only is for Ruby >= 3.0 because on 2.7 it can cause keyword argument warnings (rubocop/rubocop-rails#1363). The new syntax itself was introduced with Rails 7.0
Off-topic: Rails 6.1 is EOL a month ago, is it a good idea to scrub the guide from legacy content, and leave a note that pre-7 guidelines are only kept in the GitHub repo (in a branch).?
We suggest the kwargs-style enum definition:
This is problematic in two ways.
prefix
/suffix
/scopes
/default
is complicated (needs to be prefixed with an underscore) and is not documentedOk to change this to use positional args for name and values?
With options:
The text was updated successfully, but these errors were encountered: