Class: Practical::Views::Form::ErrorListItemTemplateComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/practical/views/form/error_list_item_template_component.rb

Instance Method Summary collapse

Instance Method Details

#callObject



4
5
6
7
8
# File 'app/components/practical/views/form/error_list_item_template_component.rb', line 4

def call
  tag.template(id: 'error-list-item-template') {
    render Practical::Views::Form::ErrorListItemComponent.new(error: ActiveModel::Error.new(nil, nil, nil))
  }
end