Sha256: 21c6bfc1acfdbdd7d4ee543d691bd5bc92d2246617605a3f49bcd74965d83fe0

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::AdjustmentReasons::Edit::Component < SolidusAdmin::BaseComponent
  def initialize(page:, adjustment_reason:)
    @page = page
    @adjustment_reason = adjustment_reason
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/adjustment_reasons/edit/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/adjustment_reasons/edit/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/adjustment_reasons/edit/component.rb