formtastic_auto_select2 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/app/inputs/ajax_select2_input.rb +2 -2
- data/lib/formtastic_auto_select2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf8f1da818cff6e10f034e057bb455c3e8072f8c
|
4
|
+
data.tar.gz: b3797163d810ec7dd3bb4ae8fa36c48af83305c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad29a477ca92c155add16657c1616006d9b067c8e491a6c7d86f551ecce99a519545f40c7acc7d8fabe9b16fd33d6bcc75f2eeefff2d69ed8fbb230c9d94dfe6
|
7
|
+
data.tar.gz: 09dd676e985102d0ba25a71cbed6b0904468ae10b053b306f86b085460679f2f256a058ab394b1205a5343b71ccbc8b5982777ba5eae745b8af525266b0b99b2
|
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# formtastic_auto_select2
|
2
2
|
|
3
|
-
Provide select2 input class for semantic_form
|
4
|
-
|
3
|
+
Provide select2 input class for semantic_form ([formtastic](https://github.com/justinfrench/formtastic)).
|
4
|
+
|
5
|
+
Based on [auto_select2](https://github.com/Loriowar/auto_select2) gem.
|
5
6
|
|
6
7
|
[![Gem Version](https://badge.fury.io/rb/formtastic_auto_select2.png)](http://badge.fury.io/rb/formtastic_auto_select2)
|
7
8
|
|
@@ -23,4 +24,4 @@ Add this line to your application's Gemfile:
|
|
23
24
|
default_class_name: :user, default_text_column: [:id, :firstname, :lastname]
|
24
25
|
|
25
26
|
More info see in documentation of [auto_select2](https://github.com/Loriowar/auto_select2) gem
|
26
|
-
and in [auto_select2_tag_example](https://github.com/Loriowar/auto_select2_tag_example) project
|
27
|
+
and in [auto_select2_tag_example](https://github.com/Loriowar/auto_select2_tag_example) project
|
@@ -13,10 +13,10 @@ class AjaxSelect2Input < Formtastic::Inputs::StringInput
|
|
13
13
|
input_options = {
|
14
14
|
value: value
|
15
15
|
}.merge(extra_input_html_options).merge(super)
|
16
|
-
input_options[:data] = {
|
16
|
+
input_options[:data] = input_options[:data].to_h.merge({
|
17
17
|
href: href,
|
18
18
|
s2options: url_params[:select2_options].to_h.merge(multiple: multiple?)
|
19
|
-
}
|
19
|
+
})
|
20
20
|
css_classes = [input_options[:class], 'auto-ajax-select2', 'input-hol']
|
21
21
|
if multiple?
|
22
22
|
css_classes << 'multiple'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic_auto_select2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Lisichkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|