13 lines
352 B
Ruby
13 lines
352 B
Ruby
module Dsfr
|
|
class InputStatusMessageComponent < ApplicationComponent
|
|
def initialize(errors_on_attribute:, error_full_messages:, described_by:)
|
|
@errors_on_attribute = errors_on_attribute
|
|
@error_full_messages = error_full_messages
|
|
@described_by = described_by
|
|
end
|
|
|
|
def render?
|
|
@errors_on_attribute
|
|
end
|
|
end
|
|
end
|