Class: SolidusAdmin::Products::Show::Component

Inherits:
BaseComponent
  • Object
show all
Includes:
Layout::PageHelpers
Defined in:
app/components/solidus_admin/products/show/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(product:) ⇒ Component

Returns a new instance of Component.



6
7
8
# File 'app/components/solidus_admin/products/show/component.rb', line 6

def initialize(product:)
  @product = product
end

Instance Method Details

#form_idObject



10
11
12
# File 'app/components/solidus_admin/products/show/component.rb', line 10

def form_id
  @form_id ||= "#{stimulus_id}--form-#{@product.id}"
end