Sha256: 68c4dd55a0fac8d97825b7c96695ab9a6f82432aa30cadea2e0e9e59b6bc4469
Contents?: true
Size: 440 Bytes
Versions: 4
Compression:
Stored size: 440 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 = 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
4 entries across 4 versions & 1 rubygems