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