Class: SolidusAdmin::Roles::New::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::Roles::New::Component
- Includes:
- PermissionSetsHelper
- Defined in:
- app/components/solidus_admin/roles/new/component.rb
Instance Method Summary collapse
- #form_id ⇒ Object
-
#initialize(page:, role:) ⇒ Component
constructor
A new instance of Component.
Methods included from PermissionSetsHelper
Constructor Details
#initialize(page:, role:) ⇒ Component
Returns a new instance of Component.
6 7 8 9 |
# File 'app/components/solidus_admin/roles/new/component.rb', line 6 def initialize(page:, role:) @page = page @role = role end |
Instance Method Details
#form_id ⇒ Object
11 12 13 |
# File 'app/components/solidus_admin/roles/new/component.rb', line 11 def form_id dom_id(@role, "#{stimulus_id}_new_role_form") end |