Sha256: 3bf8faed3822baee536b88b7ee9f6c4e0d0e7215938c716e5775d942447b09bf
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
class ActiveAdmin::Inputs::SelectInput < Formtastic::Inputs::SelectInput def input_html_options super.merge(data: { tags: @options[:tags].present? }) end def raw_collection field_value = object.send(method) @options[:tags].present? && field_value.present? ? (super.to_a << field_value).uniq : super end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
activeadmin_addons-1.8.2 | app/inputs/active_admin/inputs/select_input.rb |
activeadmin_addons_rails6-1.7.2 | app/inputs/active_admin/inputs/select_input.rb |