effective_form_inputs 0.8.10 → 0.8.11

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: 077bc6e0f1c921ab41cbe18898001036cbafa690
4
- data.tar.gz: ded3c1b25435c09f341e19b8841c355102073a3a
3
+ metadata.gz: a91fd4cbed465663b5dcc699239c38422817f693
4
+ data.tar.gz: f2153b44ff03bacb505cb112fc8c129e7d2eca1c
5
5
  SHA512:
6
- metadata.gz: 32da3183e5c6a8083cfa46e6a47bd4f8bf9b64edc649c75f6e4ac0bb67059a50b468b4161e0dfc541585684916118b62fa4bb696f3e7e9810dd9bea5846542aa
7
- data.tar.gz: 2fcfef87f0b0af98fa371b4c93da0fd361d816fda036d1dd69b6dd5660d8c8c3b06f72b37a634b998be99f3bd1fab47d50a466e3221a49e1223393b2452a7856
6
+ metadata.gz: 360136f30f14f1accb6460c9512d1ce66e32adefb650be32bb6903cdd51af2996eb26ee03aca829db630b76edd8ae1c2a58bb1ce853df3a49ef5c2d89988ba68
7
+ data.tar.gz: 07eaf3f40c4b45860282596436de195efe0fbb07fb8f045ee99c36c45ab4c254c7f9b6363b9ccfd9e424ad8c7550d817e612ceee660fcf36d15f520c17404fce
@@ -41,7 +41,7 @@ module Inputs
41
41
  collection = options.delete(:collection) || []
42
42
  grouped = collection[0].kind_of?(Array) && collection[0][0].kind_of?(String) && collection[0][1].respond_to?(:to_a) && (collection[0][1] != nil) # Array or ActiveRecord_Relation
43
43
 
44
- if options[:grouped] && !grouped
44
+ if options[:grouped] && !grouped && collection.present?
45
45
  raise "Grouped collection expecting a Hash {'Posts' => Post.all, 'Events' => Event.all} or a Hash {'Posts' => [['Post A', 1], ['Post B', 2]], 'Events' => [['Event A', 1], ['Event B', 2]]}"
46
46
  end
47
47
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.8.10'.freeze
2
+ VERSION = '0.8.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-11 00:00:00.000000000 Z
11
+ date: 2016-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -45,6 +45,9 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
48
51
  - app/assets/javascripts/effective_ckeditor_text_area/initialize.js.coffee
49
52
  - app/assets/javascripts/effective_ckeditor_text_area/input.js
50
53
  - app/assets/javascripts/effective_date_picker/initialize.js.coffee
@@ -91,12 +94,9 @@ files:
91
94
  - app/models/inputs/effective_tel/input.rb
92
95
  - app/models/inputs/effective_tel_input.rb
93
96
  - app/views/effective/style_guide/_effective_form_inputs.html.haml
97
+ - lib/effective_form_inputs.rb
94
98
  - lib/effective_form_inputs/engine.rb
95
99
  - lib/effective_form_inputs/version.rb
96
- - lib/effective_form_inputs.rb
97
- - MIT-LICENSE
98
- - Rakefile
99
- - README.md
100
100
  homepage: https://github.com/code-and-effect/effective_form_inputs
101
101
  licenses:
102
102
  - MIT
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.0.14
120
+ rubygems_version: 2.4.6
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Collection of Form Inputs