Champ Repetition dossier editor
This commit is contained in:
parent
a4a421a91a
commit
071448e1d9
17 changed files with 225 additions and 7 deletions
|
@ -10,7 +10,7 @@ class Champ < ApplicationRecord
|
|||
has_many :geo_areas, dependent: :destroy
|
||||
belongs_to :etablissement, dependent: :destroy
|
||||
|
||||
delegate :libelle, :type_champ, :order_place, :mandatory?, :description, :drop_down_list, :exclude_from_export?, :exclude_from_view?, to: :type_de_champ
|
||||
delegate :libelle, :type_champ, :order_place, :mandatory?, :description, :drop_down_list, :exclude_from_export?, :exclude_from_view?, :repetition?, to: :type_de_champ
|
||||
|
||||
scope :updated_since?, -> (date) { where('champs.updated_at > ?', date) }
|
||||
scope :public_only, -> { where(private: false) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue