effective_form_inputs 0.8.9 → 0.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ef9831320017202a55d28704777127be88f03ac
4
- data.tar.gz: 2c32b18c2c34858c46a5d91de0f3ad5fe08a4cb2
3
+ metadata.gz: 077bc6e0f1c921ab41cbe18898001036cbafa690
4
+ data.tar.gz: ded3c1b25435c09f341e19b8841c355102073a3a
5
5
  SHA512:
6
- metadata.gz: d0d9a13a2925f08b5a66dc1d8d94f4d1486c2e212dfe3324d8044568d5f0b03eb47f6c4933d36bd9590f1ef3a97f150c3779abbf5fbe602eba5015b61d2ad9a5
7
- data.tar.gz: 422fd5ae5c5e240e96f399532dadf42a667c0b487904fc14b7681dd495af63e2668037a38ce580fec8546fcc03e98c5ab5486ce3b649aca636a234a391c89397
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]]}"
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.8.9'.freeze
2
+ VERSION = '0.8.10'.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.9
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-10 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails