From 729562b317239cf883150a05f19a28e5d01cd8f4 Mon Sep 17 00:00:00 2001 From: Cory Streiff Date: Mon, 20 Jan 2025 14:30:00 +0100 Subject: [PATCH] Remove unnecessary scope --- app/models/tagging.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/tagging.rb b/app/models/tagging.rb index 0e992b609a..4467589ff2 100644 --- a/app/models/tagging.rb +++ b/app/models/tagging.rb @@ -13,7 +13,5 @@ class Tagging < ApplicationRecord belongs_to :tag belongs_to :taggable, polymorphic: true - scope :by_type, ->(type) { where(taggable_type: type) } - validates :tag_id, uniqueness: {scope: :taggable, message: "has already been applied"} end