delegate stable_id to tdc
This commit is contained in:
parent
e7078279b8
commit
abc3681053
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue