Add reviewed
and unreviewed
scopes to Reviewable
model concern (#31988)
This commit is contained in:
parent
c922af2737
commit
04a939d640
7 changed files with 33 additions and 23 deletions
|
@ -34,8 +34,6 @@ class PreviewCardProvider < ApplicationRecord
|
|||
|
||||
scope :trendable, -> { where(trendable: true) }
|
||||
scope :not_trendable, -> { where(trendable: false) }
|
||||
scope :reviewed, -> { where.not(reviewed_at: nil) }
|
||||
scope :pending_review, -> { where(reviewed_at: nil) }
|
||||
|
||||
def self.matching_domain(domain)
|
||||
segments = domain.split('.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue