Sha256: d9b8c58c150664202985dccec4b145dc2a669fcf5a0a43c2c7355c63684020c4

Contents?: true

Size: 222 Bytes

Versions: 24

Compression:

Stored size: 222 Bytes

Contents

class TagsInput < Formtastic::Inputs::StringInput
  def input_html_options
    opts = {}
    opts[:class] = "select2-tags"
    opts["data-collection"] = (@options[:collection] || []).to_json
    super.merge opts
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
activeadmin_addons-0.7.0 app/inputs/tags_input.rb
activeadmin_addons-0.6.4 app/inputs/tags_input.rb
activeadmin_addons-0.6.3 app/inputs/tags_input.rb
activeadmin_addons-0.6.2 app/inputs/tags_input.rb
activeadmin_addons-0.6.1 app/inputs/tags_input.rb
activeadmin_addons-0.6.0 app/inputs/tags_input.rb
activeadmin_addons-0.5.0 app/inputs/tags_input.rb
activeadmin_addons-0.4.0 app/inputs/tags_input.rb
activeadmin_addons-0.3.4 app/inputs/tags_input.rb
activeadmin_addons-0.3.3 app/inputs/tags_input.rb
activeadmin_addons-0.3.2 app/inputs/tags_input.rb
activeadmin_addons-0.3.1 app/inputs/tags_input.rb
activeadmin_addons-0.3.0 app/inputs/tags_input.rb
activeadmin_addons-0.2.8 app/inputs/tags_input.rb
activeadmin_addons-0.2.7 app/inputs/tags_input.rb
activeadmin_addons-0.2.6 app/inputs/tags_input.rb
activeadmin_addons-0.2.5 app/inputs/tags_input.rb
activeadmin_addons-0.2.4 app/inputs/tags_input.rb
activeadmin_addons-0.2.3 app/inputs/tags_input.rb
activeadmin_addons-0.2.2 app/inputs/tags_input.rb