From adc4da8f2997148ae19f75cc6040e3fa039c8265 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Mon, 24 Aug 2026 19:29:38 +0200 Subject: [PATCH] Fix new `Style/DirectiveScope` offense --- lib/client_side_validations/mongoid/uniqueness.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client_side_validations/mongoid/uniqueness.rb b/lib/client_side_validations/mongoid/uniqueness.rb index 7fc7443..d7c5af4 100644 --- a/lib/client_side_validations/mongoid/uniqueness.rb +++ b/lib/client_side_validations/mongoid/uniqueness.rb @@ -3,7 +3,7 @@ module ClientSideValidations module Mongoid module Uniqueness - # rubocop:disable Metrics/CyclomaticComplexity + # rubocop:disable-next Metrics/CyclomaticComplexity def client_side_hash(model, attribute, _force = nil) hash = {} hash[:message] = model.errors.generate_message(attribute, message_type, options.except(:scope)) @@ -22,7 +22,6 @@ def client_side_hash(model, attribute, _force = nil) hash end - # rubocop:enable Metrics/CyclomaticComplexity private