Class: SolidusAdmin::AdjustmentReasons::New::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/solidus_admin/adjustment_reasons/new/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(page:, adjustment_reason:) ⇒ Component

Returns a new instance of Component.



4
5
6
7
# File 'app/components/solidus_admin/adjustment_reasons/new/component.rb', line 4

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

Instance Method Details

#form_idObject



9
10
11
# File 'app/components/solidus_admin/adjustment_reasons/new/component.rb', line 9

def form_id
  dom_id(@adjustment_reason, "#{stimulus_id}_new_adjustment_reason_form")
end