Class: SolidusAdmin::Products::Show::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::Products::Show::Component
- Includes:
- Layout::PageHelpers
- Defined in:
- app/components/solidus_admin/products/show/component.rb
Instance Method Summary collapse
- #form_id ⇒ Object
-
#initialize(product:) ⇒ Component
constructor
A new instance of Component.
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_id ⇒ Object
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 |