delegate stable_id to tdc

This commit is contained in:
simon lehericey 2022-05-23 11:22:37 +02:00 committed by Paul Chavard
parent e7078279b8
commit abc3681053

View file

@ -50,6 +50,7 @@ class Champ < ApplicationRecord
:dossier_link?,
:titre_identite?,
:header_section?,
:stable_id,
to: :type_de_champ
scope :updated_since?, -> (date) { where('champs.updated_at > ?', date) }
@ -157,10 +158,6 @@ class Champ < ApplicationRecord
"#{html_id}-description" if description.present?
end
def stable_id
type_de_champ.stable_id
end
def log_fetch_external_data_exception(exception)
exceptions = self.fetch_external_data_exceptions ||= []
exceptions << exception.inspect