9 lines
259 B
Ruby
9 lines
259 B
Ruby
class EditableChamp::DossierLinkComponent < EditableChamp::EditableChampBaseComponent
|
|
def dsfr_input_classname
|
|
'fr-input'
|
|
end
|
|
|
|
def dossier
|
|
@dossier ||= @champ.blank? ? nil : Dossier.visible_by_administration.find_by(id: @champ.to_s)
|
|
end
|
|
end
|