Add the archived scope to Procedure
This commit is contained in:
parent
411c5791c8
commit
6a381caaee
3 changed files with 3 additions and 2 deletions
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue