Module: AutoSelect2::Select2Helpers
- Defined in:
- lib/auto_select2/helpers.rb,
lib/auto_select2/helpers/select2_helpers.rb
Instance Method Summary collapse
- #ajax_multi_select2_init_header_tags ⇒ Object
- #ajax_select2_init_header_tags ⇒ Object
- #custom_select2_init_header_tags ⇒ Object
- #data_select2_init_head_tags ⇒ Object
- #static_select2_init_header_tags ⇒ Object
Instance Method Details
#ajax_multi_select2_init_header_tags ⇒ Object
11 12 13 14 15 16 |
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 11 def 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_tags ⇒ Object
4 5 6 7 8 9 |
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 4 def unless @select2_ajax_script_included @select2_ajax_script_included = true javascript_include_tag('auto_select2/ajax_select2') end end |
#custom_select2_init_header_tags ⇒ Object
18 19 20 21 22 23 |
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 18 def unless @select2_custom_script_included @select2_custom_script_included = true javascript_include_tag('auto_select2/custom_select2') end end |
#data_select2_init_head_tags ⇒ Object
32 33 34 35 36 37 |
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 32 def unless @select2_data_script_included @select2_data_script_included = true javascript_include_tag('auto_select2/data_select2') end end |
#static_select2_init_header_tags ⇒ Object
25 26 27 28 29 30 |
# File 'lib/auto_select2/helpers/select2_helpers.rb', line 25 def unless @select2_static_script_included @select2_static_script_included = true javascript_include_tag('auto_select2/static_select2') end end |