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