Open pirj opened 1 month ago
Not sure if you're aware, but there's a cop for this now: https://github.com/rubocop/rubocop-rails/pull/1336 It is only is for Ruby >= 3.0 because on 2.7 it can cause keyword argument warnings (https://github.com/rubocop/rubocop-rails/pull/1363). The new syntax itself was introduced with Rails 7.0
@koic @andyw8 wdyt?
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: