From c0ee562c9fc22fce91533215fef3089b633352f7 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Tue, 7 Oct 2025 10:58:02 +0000 Subject: [PATCH] Temporary disable Rails/HasAndBelongsToMany offense, git-svn-id: https://svn.redmine.org/redmine/trunk@24037 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/webhook.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/webhook.rb b/app/models/webhook.rb index 11dafd3a2..d67c31f6a 100644 --- a/app/models/webhook.rb +++ b/app/models/webhook.rb @@ -29,7 +29,8 @@ class Webhook < ApplicationRecord end belongs_to :user - has_and_belongs_to_many :projects + # ToDo: Confirm if we should keep this as it is or we should move to has_many :through + has_and_belongs_to_many :projects # rubocop:disable Rails/HasAndBelongsToMany validates :url, presence: true, webhook_endpoint: true, length: { maximum: 2000 } validates :secret, length: { maximum: 255 }, allow_blank: true