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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a91fd4cbed465663b5dcc699239c38422817f693
|
4
|
+
data.tar.gz: f2153b44ff03bacb505cb112fc8c129e7d2eca1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.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:
|
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.
|
120
|
+
rubygems_version: 2.4.6
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Collection of Form Inputs
|