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