Module: AutoSelect2::Select2Helpers

Defined in:
lib/auto_select2/helpers.rb,
lib/auto_select2/helpers/select2_helpers.rb

Instance Method Summary collapse

Instance Method Details

#ajax_multi_select2_init_header_tagsObject



11
12
13
14
15
16
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 11

def ajax_multi_select2_init_header_tags
  unless @select2_multi_ajax_script_included
    @select2_multi_ajax_script_included = true
    javascript_include_tag('auto_select2/multi_ajax_select2_value_parser')
  end
end

#ajax_select2_init_header_tagsObject



4
5
6
7
8
9
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 4

def ajax_select2_init_header_tags
  unless @select2_ajax_script_included
    @select2_ajax_script_included = true
    javascript_include_tag('auto_select2/ajax_select2')
  end
end

#static_select2_init_header_tagsObject



18
19
20
21
22
23
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 18

def static_select2_init_header_tags
  unless @select2_static_script_included
    @select2_static_script_included = true
    javascript_include_tag('auto_select2/static_select2')
  end
end