Class: TagsInput
- Inherits:
-
Formtastic::Inputs::StringInput
- Object
- Formtastic::Inputs::StringInput
- TagsInput
- Defined in:
- app/inputs/tags_input.rb
Instance Method Summary collapse
Instance Method Details
#input_html_options ⇒ Object
2 3 4 5 6 7 |
# File 'app/inputs/tags_input.rb', line 2 def opts = {} opts[:class] = "select2-tags" opts["data-collection"] = ([:collection] || []).to_json super.merge opts end |