From cf8a307ec7e2c50f5454d1a00fc27a84b85ae8fb Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Fri, 31 Dec 2021 09:16:04 +0300 Subject: [PATCH] Fix yard docs --- .../rails/redundant_presence_validation_on_belongs_to.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb b/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb index 24ed3fb494..3ef7fe7055 100644 --- a/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb +++ b/lib/rubocop/cop/rails/redundant_presence_validation_on_belongs_to.rb @@ -59,14 +59,14 @@ class RedundantPresenceValidationOnBelongsTo < Base ) PATTERN - # @!method optional_option?(node) - # Match a `belongs_to` association with an optional option in a hash + # @!method optional?(node) + # Match a `belongs_to` association with an optional option in a hash def_node_matcher :optional?, <<~PATTERN (send nil? :belongs_to _ ... #optional_option?) PATTERN # @!method optional_option?(node) - # Match an optional option in a hash + # Match an optional option in a hash def_node_matcher :optional_option?, <<~PATTERN { (hash <(pair (sym :optional) true) ...>) # optional: true