Class: SolidusAdmin::Roles::Edit::Component

Inherits:
BaseComponent
  • Object
show all
Includes:
PermissionSetsHelper
Defined in:
app/components/solidus_admin/roles/edit/component.rb

Instance Method Summary collapse

Methods included from PermissionSetsHelper

#organize_permissions

Constructor Details

#initialize(page:, role:) ⇒ Component

Returns a new instance of Component.



6
7
8
9
# File 'app/components/solidus_admin/roles/edit/component.rb', line 6

def initialize(page:, role:)
  @page = page
  @role = role
end

Instance Method Details

#form_idObject



11
12
13
# File 'app/components/solidus_admin/roles/edit/component.rb', line 11

def form_id
  dom_id(@role, "#{stimulus_id}_edit_role_form")
end