New features
- #547: Add new
Rails/ActionOrder
cop. (@mollerhoj) - #565: Add cop Rails/WhereNotWithMultipleConditions. (@niklas-hasselmeyer)
- #771: Add new
Rails/IgnoredColumnsAssignment
cop. (@fsateler, @kkitadate) - #790: Make
Style/HashExcept
aware of TargetRubyVersion: 2.x because Rails hasHash#except
. (@koic)
Bug fixes
- #786: Fix a false negative for
Rails/ActionControllerTestCase
when extendingActionController::TestCase
and having a method definition. (@koic) - #792: Fix a false negative for
Rails/RedundantPresenceValidationOnBelongsTo
when belongs_to at least one block and one hash likebelongs_to :company, -> { where(foo: true) }, inverse_of: :employee
. (@PedroAugustoRamalhoDuarte) - #781: Make
Rails/DynamicFindBy
aware offind_by_token_for
. (@koic) - #809: Fix an error for
Rails/FreezeTime
when usingtravel_to
without argument. (@koic) - #794: Fix an error for
Rails/RedundantReceiverInWithOptions
when calling a method with a receiver inwith_options
without block arguments. (@koic) - #782: Fix an incorrect autocorrect for
Rails/EagerEvaluationLogMessage
when usingStyle/MethodCallWithArgsParentheses
's autocorrection together. (@koic) - #776: Fix an incorrect autocorrect for
Rails/Presence
when using arithmetic operation inelse
branch. (@koic) - #813: Fix errors that occur when unrelated
tag
is investigated byRails/ContentTag
. (@r7kamura) - #808: Fix false positive for
Rails/ActionControllerFlashBeforeRender
whenrender
call precedesflash
call. (@americodls) - #778: Fix a false positive for
Rails/DynamicFindBy
when usingpage.find_by_id
as a Capybara testing API. (@koic) - #816: Fix an incorrect autocorrect for
Rails/Presence
when a right-hand side of the relational operator. (@ydah)
Changes
- #779: Add
mail
toAllowedMethods
ofStyle/SymbolProc
. (@koic) - #796: Add several directories to
Exclude
to prevent slow investigation. (@koic) - #822: Extends
Rails/HttpStatus
cop to checkroutes.rb
. (@anthony-robin) - #787: Make
Rails/Pluck
aware of all keys. (@koic) - #800: Make
Rails/TimeZone
aware of timezone UTF offset. (@inkstak)