Add the not_published Procedure scope
This commit is contained in:
parent
811723e5fb
commit
31b23ac74e
3 changed files with 3 additions and 2 deletions
|
@ -33,6 +33,7 @@ class Procedure < ActiveRecord::Base
|
|||
|
||||
default_scope { where(hidden_at: nil) }
|
||||
scope :published, -> { where(published: true) }
|
||||
scope :not_published, -> { where(published: false) }
|
||||
scope :not_archived, -> { where(archived: false) }
|
||||
scope :by_libelle, -> { order(libelle: :asc) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue