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

#custom_select2_init_header_tagsObject



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

def custom_select2_init_header_tags
  unless @select2_custom_script_included
    @select2_custom_script_included = true
    javascript_include_tag('auto_select2/custom_select2')
  end
end

#data_select2_init_head_tagsObject



32
33
34
35
36
37
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 32

def data_select2_init_head_tags
  unless @select2_data_script_included
    @select2_data_script_included = true
    javascript_include_tag('auto_select2/data_select2')
  end
end

#static_select2_init_header_tagsObject



25
26
27
28
29
30
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 25

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