New features
- #714: Add new
Rails/FreezeTime
cop. (@ydah) - #744: Add new
Rails/WhereMissing
cop. (@ydah) - #587: Add new
Rails/RootPathnameMethods
cop. (@leoarnold) - #752: Add
Rails/TopLevelHashWithIndifferentAccess
cop. (@r7kamura) - #759: Add new
Rails/ActionControllerFlashBeforeRender
cop. (@americodls) - #749: Add new
Rails/ActiveSupportOnLoad
cop. (@bdewater) - #747: Add
Rails/ToSWithArgument
cop. (@r7kamura) - #746: Enable
ActiveSupportExtensionsEnabled
option by default. (@koic)
Bug fixes
- #757: Fix a false positive for
Rails/ReflectionClassName
when using Ruby 3.1's hash shorthand syntax. (@koic) - #741: Fix a bad autocorrection for
errors.details[:name] << value
in Rails/DeprecatedActiveModelErrorsMethods. (@BrianHawley) - #742: Rails/DeprecatedActiveModelErrorsMethods was missing the deprecated
values
,to_h
, andto_xml
methods. (@BrianHawley) - #740: Fix a NoMethodError on nil for
errors.keys
in a model in Rails/DeprecatedActiveModelErrorsMethods. (@BrianHawley) - #753: Fix
Rails/CompactBlank
bug when offense is found in block. (@r7kamura) - #756: Fix incorrect documentation URLs when using
rubocop --show-docs-url
. (@r7kamura) - #754: Make
Rails/RedundantReceiverInWithOptions
andRails/ReversibleMigration
cops aware of numbered block parameter. (@koic)