Module: ActiveScaffold::Bridges::Chosen::Helpers::SearchColumnHelpers

Defined in:
lib/active_scaffold/bridges/chosen/helpers.rb

Instance Method Summary collapse

Instance Method Details

#active_scaffold_search_chosen(column, options) ⇒ Object



36
37
38
39
# File 'lib/active_scaffold/bridges/chosen/helpers.rb', line 36

def active_scaffold_search_chosen(column, options)
  options[:class] << ' chosen'
  active_scaffold_search_select(column, options)
end

#active_scaffold_search_multi_chosen(column, options) ⇒ Object



41
42
43
44
45
46
# File 'lib/active_scaffold/bridges/chosen/helpers.rb', line 41

def active_scaffold_search_multi_chosen(column, options)
  options[:class] << ' chosen'
  options[:multiple] = true
  options[:'data-placeholder'] = column.options[:placeholder] || as_(:_select_)
  active_scaffold_search_select(column, options)
end