Class: Alchemy::Ingredients::SpreeTaxonEditor

Inherits:
BaseEditor
  • Object
show all
Defined in:
app/components/alchemy/ingredients/spree_taxon_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_taxon_editor.rb', line 8

def input_field
  render Alchemy::Admin::TaxonSelect.new(api_key, taxon:, query_params:) do
    text_field_tag form_field_name(:taxon_id),
      taxon&.id,
      id: form_field_id(:taxon_id),
      class: "full_width"
  end
end