File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,14 @@ class RedundantPresenceValidationOnBelongsTo < Base
59
59
)
60
60
PATTERN
61
61
62
- # @!method optional_option ?(node)
63
- # Match a `belongs_to` association with an optional option in a hash
62
+ # @!method optional ?(node)
63
+ # Match a `belongs_to` association with an optional option in a hash
64
64
def_node_matcher :optional? , <<~PATTERN
65
65
(send nil? :belongs_to _ ... #optional_option?)
66
66
PATTERN
67
67
68
68
# @!method optional_option?(node)
69
- # Match an optional option in a hash
69
+ # Match an optional option in a hash
70
70
def_node_matcher :optional_option? , <<~PATTERN
71
71
{
72
72
(hash <(pair (sym :optional) true) ...>) # optional: true
@@ -124,7 +124,7 @@ class RedundantPresenceValidationOnBelongsTo < Base
124
124
)
125
125
PATTERN
126
126
127
- # @!method belongs_to_without_fk?(node, fk )
127
+ # @!method belongs_to_without_fk?(node, key )
128
128
# Match a matching `belongs_to` association, without an explicit `foreign_key` option
129
129
#
130
130
# @param node [RuboCop::AST::Node]
You can’t perform that action at this time.
0 commit comments