rename publiques scope to opendata
This commit is contained in:
parent
49a77ddffe
commit
e2348aa8f1
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ module Types
|
|||
field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false, require_admin: true, max_page_size: 30
|
||||
|
||||
def demarches_publiques
|
||||
Procedure.publiques
|
||||
Procedure.opendata
|
||||
end
|
||||
|
||||
def demarche(number:)
|
||||
|
|
|
@ -219,7 +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 :opendata, -> { 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