Class: SolidusAdmin::ReturnReasons::New::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::ReturnReasons::New::Component
- Defined in:
- app/components/solidus_admin/return_reasons/new/component.rb
Instance Method Summary collapse
- #form_id ⇒ Object
-
#initialize(page:, return_reason:) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(page:, return_reason:) ⇒ Component
Returns a new instance of Component.
4 5 6 7 |
# File 'app/components/solidus_admin/return_reasons/new/component.rb', line 4 def initialize(page:, return_reason:) @page = page @return_reason = return_reason end |
Instance Method Details
#form_id ⇒ Object
9 10 11 |
# File 'app/components/solidus_admin/return_reasons/new/component.rb', line 9 def form_id dom_id(@return_reason, "#{stimulus_id}_new_return_reason_form") end |