Class: Spotlight::TagListFormComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/spotlight/tag_list_form_component.rb

Overview

Create tag list for exhibit general/create form

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(form:) ⇒ TagListFormComponent

Returns a new instance of TagListFormComponent.



8
9
10
11
# File 'app/components/spotlight/tag_list_form_component.rb', line 8

def initialize(form:)
  @form = form
  super
end

Instance Attribute Details

#formObject (readonly)

Returns the value of attribute form.



6
7
8
# File 'app/components/spotlight/tag_list_form_component.rb', line 6

def form
  @form
end