class Trestle::Form::Fields::TagSelect
Public Class Methods
new(builder, template, name, options={}, html_options={})
click to toggle source
Calls superclass method
Trestle::Form::Fields::Select::new
# File lib/trestle/form/fields/tag_select.rb, line 7 def initialize(builder, template, name, options={}, html_options={}) super(builder, template, name, nil, options, html_options) end
Public Instance Methods
default_html_options()
click to toggle source
Calls superclass method
Trestle::Form::Fields::Select#default_html_options
# File lib/trestle/form/fields/tag_select.rb, line 11 def default_html_options super.merge(multiple: true, class: ["tag-select"], data: { tags: true }) end