Sha256: 0ac63f488335b1858bf150a0635b1776d69fe8bd2229d8c3630d5f039994d785

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

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

  def form_id
    dom_id(@adjustment_reason, "#{stimulus_id}_new_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/new/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/adjustment_reasons/new/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/adjustment_reasons/new/component.rb