Prøv dette:
# Notice single = vs ==
WHERE (archived = 1)
Opdater Endte med at gøre
scope :is_archived, where('archived != ?', 1)
scope :not_archived, where('archived = ?', 1)
Dette fungerede fantastisk. Tak!
Prøv dette:
# Notice single = vs ==
WHERE (archived = 1)
Opdater Endte med at gøre
scope :is_archived, where('archived != ?', 1)
scope :not_archived, where('archived = ?', 1)
Dette fungerede fantastisk. Tak!