Skip to content

Commit

Permalink
[Fix rubocop#1158] Rails/HasManyOrHasOneDependent reports false posit…
Browse files Browse the repository at this point in the history
…ive when has_many or has_one called on explicit receiver
  • Loading branch information
samrjenkins committed Oct 17, 2023
1 parent 0a0d86c commit c6fa028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rails/has_many_or_has_one_dependent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class HasManyOrHasOneDependent < Base
(block
(send nil? :with_options
(hash $...))
(args) ...)
(args ...) ...)
PATTERN

def_node_matcher :association_extension_block?, <<~PATTERN
Expand Down

0 comments on commit c6fa028

Please sign in to comment.