Class: ActiveAdmin::Inputs::SelectInput

Inherits:
Formtastic::Inputs::SelectInput
  • Object
show all
Defined in:
app/inputs/active_admin/inputs/select_input.rb

Instance Method Summary collapse

Instance Method Details

#input_html_optionsObject



2
3
4
# File 'app/inputs/active_admin/inputs/select_input.rb', line 2

def input_html_options
  super.merge(data: { tags: @options[:tags].present? })
end

#raw_collectionObject



6
7
8
9
10
# File 'app/inputs/active_admin/inputs/select_input.rb', line 6

def raw_collection
  field_value = object.send(method)

  @options[:tags].present? && field_value.present? ? (super.to_a << field_value).uniq : super
end