Method: Anchor::ErrorMessageComponent#initialize
- Defined in:
- app/components/anchor/error_message_component.rb
#initialize(form_builder:, attribute:, **kwargs) ⇒ ErrorMessageComponent
Returns a new instance of ErrorMessageComponent.
16 17 18 19 20 21 |
# File 'app/components/anchor/error_message_component.rb', line 16 def initialize(form_builder:, attribute:, **kwargs) @form_builder = form_builder @attribute = attribute super(**kwargs) end |