demarches-normaliennes/app/components/procedure/card/attestation_component.rb

12 lines
242 B
Ruby
Raw Normal View History

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