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