demarches-normaliennes/app/components/editable_champ/editable_champ_base_component.rb

9 lines
257 B
Ruby
Raw Normal View History

class EditableChamp::EditableChampBaseComponent < ApplicationComponent
2023-05-05 09:13:05 +02:00
include Dsfr::InputErrorable
def initialize(form:, champ:, seen_at: nil, opts: {})
@form, @champ, @seen_at, @opts = form, champ, seen_at, opts
@attribute = :value
end
end