add scope publiques for procedures
This commit is contained in:
parent
7a06230912
commit
b56706b6b8
1 changed files with 1 additions and 0 deletions
|
@ -219,6 +219,7 @@ class Procedure < ApplicationRecord
|
|||
scope :brouillons, -> { where(aasm_state: :brouillon) }
|
||||
scope :publiees, -> { where(aasm_state: :publiee) }
|
||||
scope :closes, -> { where(aasm_state: [:close, :depubliee]) }
|
||||
scope :publiques, -> { where(opendata: true) }
|
||||
scope :publiees_ou_closes, -> { where(aasm_state: [:publiee, :close, :depubliee]) }
|
||||
scope :by_libelle, -> { order(libelle: :asc) }
|
||||
scope :created_during, -> (range) { where(created_at: range) }
|
||||
|
|
Loading…
Reference in a new issue