Class: Alchemy::Ingredients::SpreeVariantEditor

Inherits:
BaseEditor
  • Object
show all
Defined in:
app/components/alchemy/ingredients/spree_variant_editor.rb

Instance Method Summary collapse

Instance Method Details

#input_fieldObject



8
9
10
11
12
13
14
15
# File 'app/components/alchemy/ingredients/spree_variant_editor.rb', line 8

def input_field
  render Alchemy::Admin::VariantSelect.new(api_key, variant:, query_params:) do
    text_field_tag form_field_name(:variant_id),
      variant&.id,
      id: form_field_id(:variant_id),
      class: "full_width"
  end
end