Add not_allowed
scope for PreviewCardTrend
(#29599)
This commit is contained in:
parent
cf76380c91
commit
32938dadd7
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue