demarches-normaliennes/app/components/procedure/card/attestation_component.rb
2022-11-23 12:26:26 +01:00

11 lines
242 B
Ruby

class Procedure::Card::AttestationComponent < ApplicationComponent
def initialize(procedure:)
@procedure = procedure
end
private
def error_messages
@procedure.errors.messages_for(:attestation_template).to_sentence
end
end