Sha256: c8a3b6fa50cf383080101bcce86b7f80fc50850c272504946708801d1db5765a
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
class ActiveAdmin::Inputs::SelectInput < Formtastic::Inputs::SelectInput def input_html_options if @options[:tags].present? super.deep_merge(class: 'simple-tags-input') else super end end 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin_addons-2.0.0.beta.0 | app/inputs/active_admin/inputs/select_input.rb |