Class: ActiveAdmin::Inputs::SelectInput
- Inherits:
-
Formtastic::Inputs::SelectInput
- Object
- Formtastic::Inputs::SelectInput
- ActiveAdmin::Inputs::SelectInput
- Defined in:
- app/inputs/active_admin/inputs/select_input.rb
Instance Method Summary collapse
Instance Method Details
#input_html_options ⇒ Object
2 3 4 |
# File 'app/inputs/active_admin/inputs/select_input.rb', line 2 def super.merge(data: { tags: @options[:tags].present? }) end |
#raw_collection ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/inputs/active_admin/inputs/select_input.rb', line 6 def raw_collection field_value = begin object.send(method) rescue NoMethodError nil end @options[:tags].present? && field_value.present? ? (super.to_a << field_value).uniq : super end |