demarches-normaliennes/app/components/editable_champ/editable_champ_base_component.rb
2023-07-26 14:27:50 +02:00

8 lines
257 B
Ruby

class EditableChamp::EditableChampBaseComponent < ApplicationComponent
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