Add the archived scope to Procedure

This commit is contained in:
gregoirenovel 2017-07-10 16:52:59 +02:00
parent 411c5791c8
commit 6a381caaee
3 changed files with 3 additions and 2 deletions

View file

@ -34,6 +34,7 @@ class Procedure < ActiveRecord::Base
default_scope { where(hidden_at: nil) }
scope :published, -> { where(published: true) }
scope :not_published, -> { where(published: false) }
scope :archived, -> { where(archived: true) }
scope :not_archived, -> { where(archived: false) }
scope :by_libelle, -> { order(libelle: :asc) }