New features
- #906: Add
Rails/EnvLocal
cop. (@sambostock) - #1128: Make
Rails/DuplicateAssociation
aware of duplicateclass_name
. (@koic) - #1157: Support some Rails 7.1's new querying methods for
Rails/RedundantActiveRecordAllMethod
. (@koic) - #1147: Support the Trilogy adapter for MySQL. (@koic)
Bug fixes
- #952: Fix a false positive for
Rails/NotNullColumn
when usingnull: false
for MySQL's TEXT type. (@koic) - #1041: Fix a false positive for
Rails/Output
when output method is called with block argument. (@koic) - #1143: Fix an error for
Rails/RedundantActiveRecordAllMethod
when using RuboCop 1.51 or lower. (@koic) - #1105: Fix false positives for
Rails/RedundantPresenceValidationOnBelongsTo
when usingvalidates
with:if
or:unless
options. (@koic) - #1158:
Rails/HasManyOrHasOneDependent
does not add offence when has_many or has_one is called on an explicit receiver. (@samrjenkins) - #1160: Fix
Rails/SaveBang
to ignore parenthesis. (@fatkodima)