auto_select2_tag 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5bd5f69689b849a633521a3074534ac0ca7e888
|
4
|
+
data.tar.gz: c4ab52daf1b75f197409cc4009f8055297ee0caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1daae21e60a0ea6e5778c4cd145d2982cffb4cd67d70ae4a708f72d2304ea622f2bd5f5350036d9f885f50a4cbd5088421cc124f55a3f5b32f9e36e5a5f974fc
|
7
|
+
data.tar.gz: d6e40b5fe8e51817c2707573a913b5f576ec26d15185b11e286329e7c4fd8c0aadd074ea1d42486acbf87cddd10ee8717fdebd30ca4ad372343d6f335433d7b2
|
@@ -5,7 +5,7 @@ module AutoSelect2Tag
|
|
5
5
|
options[:class] = [options[:class], 'auto-static-select2'].compact.join(' ')
|
6
6
|
select2_options = options.delete(:select2_options)
|
7
7
|
if select2_options.present?
|
8
|
-
options[:data] = (options[:data] || {}).merge('
|
8
|
+
options[:data] = (options[:data] || {}).merge('s2-options' => select2_options)
|
9
9
|
end
|
10
10
|
select_tag(name, option_tags, options)
|
11
11
|
end
|
@@ -15,7 +15,7 @@ module AutoSelect2Tag
|
|
15
15
|
original_classes = options.delete(:class)
|
16
16
|
original_data = options.delete(:data) || {}
|
17
17
|
select2_options = options.delete(:select2_options)
|
18
|
-
original_data.merge!('
|
18
|
+
original_data.merge!('s2-options' => select2_options) if select2_options.present?
|
19
19
|
search_method = options.delete(:search_method)
|
20
20
|
classes = ['auto-ajax-select2', original_classes].compact.join(' ')
|
21
21
|
controller_params = {}
|