0
0
Fork 0

Add not_allowed scope for PreviewCardTrend (#29599)

This commit is contained in:
Matt Jankowski 2024-03-26 09:21:20 -04:00 committed by GitHub
parent cf76380c91
commit 32938dadd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -15,5 +15,7 @@ class PreviewCardTrend < ApplicationRecord
include RankedTrend
belongs_to :preview_card
scope :allowed, -> { where(allowed: true) }
scope :not_allowed, -> { where(allowed: false) }
end