2022-07-20 18:53:40 +02:00
|
|
|
class Procedure::Card::AttestationComponent < ApplicationComponent
|
|
|
|
def initialize(procedure:)
|
|
|
|
@procedure = procedure
|
|
|
|
end
|
2022-11-09 12:10:19 +01:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def error_messages
|
|
|
|
@procedure.errors.messages_for(:attestation_template).to_sentence
|
|
|
|
end
|
2022-07-20 18:53:40 +02:00
|
|
|
end
|