effective_form_inputs 0.8.9 → 0.8.10
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: 077bc6e0f1c921ab41cbe18898001036cbafa690
|
4
|
+
data.tar.gz: ded3c1b25435c09f341e19b8841c355102073a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32da3183e5c6a8083cfa46e6a47bd4f8bf9b64edc649c75f6e4ac0bb67059a50b468b4161e0dfc541585684916118b62fa4bb696f3e7e9810dd9bea5846542aa
|
7
|
+
data.tar.gz: 2fcfef87f0b0af98fa371b4c93da0fd361d816fda036d1dd69b6dd5660d8c8c3b06f72b37a634b998be99f3bd1fab47d50a466e3221a49e1223393b2452a7856
|
@@ -39,7 +39,7 @@ module Inputs
|
|
39
39
|
def collection
|
40
40
|
@collection ||= begin
|
41
41
|
collection = options.delete(:collection) || []
|
42
|
-
grouped = collection[0].kind_of?(Array) && collection[0][0].kind_of?(String) && collection[0][1].respond_to?(:to_a) # Array or ActiveRecord_Relation
|
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
44
|
if options[:grouped] && !grouped
|
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]]}"
|
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.
|
4
|
+
version: 0.8.10
|
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
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|