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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 198fa01b235bba231d9958a2d8a36de94e9a634c
4
- data.tar.gz: c9f425386c2e84c00850e545e63617f89b5fa882
3
+ metadata.gz: bf8f1da818cff6e10f034e057bb455c3e8072f8c
4
+ data.tar.gz: b3797163d810ec7dd3bb4ae8fa36c48af83305c8
5
5
  SHA512:
6
- metadata.gz: 974617787ccf32093a98b2c97039779173ead40bfe093d5343ec51aa58e49378879b3bd5b71ebd650211a1ce0eb66c9d4af22e8d43c1744e333414946f76bc5e
7
- data.tar.gz: 98df5924ce1585ca99dda43ac71e1fe47cd3ca4b949383fc457de6de8cf389606953b73c517fdc7ab91b99d98e51a94c065336193a27a1e8aa5d537a57776d51
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
- The `FormtasticAutoSelect2` based on [auto_select2](https://github.com/Loriowar/auto_select2) gem.
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'
@@ -1,3 +1,3 @@
1
1
  module FormtasticAutoSelect2
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties