Skip to content

Commit 1d7a9ed

Browse files
committed
Fix yard docs
1 parent 4bd8199 commit 1d7a9ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ class RedundantPresenceValidationOnBelongsTo < Base
5959
)
6060
PATTERN
6161

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
6464
def_node_matcher :optional?, <<~PATTERN
6565
(send nil? :belongs_to _ ... #optional_option?)
6666
PATTERN
6767

6868
# @!method optional_option?(node)
69-
# Match an optional option in a hash
69+
# Match an optional option in a hash
7070
def_node_matcher :optional_option?, <<~PATTERN
7171
{
7272
(hash <(pair (sym :optional) true) ...>) # optional: true
@@ -124,7 +124,7 @@ class RedundantPresenceValidationOnBelongsTo < Base
124124
)
125125
PATTERN
126126

127-
# @!method belongs_to_without_fk?(node, fk)
127+
# @!method belongs_to_without_fk?(node, key)
128128
# Match a matching `belongs_to` association, without an explicit `foreign_key` option
129129
#
130130
# @param node [RuboCop::AST::Node]

0 commit comments

Comments
 (0)