Sha256: d31eb99dac10700bb1b34ab3665496699ebf65358c022ddd40c871b33e043ec1
Contents?: true
Size: 497 Bytes
Versions: 3
Compression:
Stored size: 497 Bytes
Contents
module Trestle class Form module Fields class TagSelect < Select def initialize(builder, template, name, options={}, html_options={}) super(builder, template, name, nil, options, html_options) end def default_html_options super.merge(multiple: true, class: "tag-select", disabled: admin.readonly?, data: { tags: true }) end end end end end Trestle::Form::Builder.register(:tag_select, Trestle::Form::Fields::TagSelect)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.9.1 | lib/trestle/form/fields/tag_select.rb |
trestle-0.9.0 | lib/trestle/form/fields/tag_select.rb |
trestle-0.8.13 | lib/trestle/form/fields/tag_select.rb |