Skip to content

Commit

Permalink
Remove unnecessary scope
Browse files Browse the repository at this point in the history
  • Loading branch information
coalest committed Jan 20, 2025
1 parent 374dea1 commit 729562b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/models/tagging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 729562b

Please sign in to comment.