noodall-form-builder 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/forms_helper.rb +10 -0
- data/lib/noodall/form_builder/version.rb +1 -1
- metadata +13 -13
data/app/helpers/forms_helper.rb
CHANGED
@@ -8,4 +8,14 @@ module FormsHelper
|
|
8
8
|
Noodall::FormResponse.new(defaults)
|
9
9
|
end
|
10
10
|
|
11
|
+
def field_type(field)
|
12
|
+
field_type = field._type.gsub(/^.*::/, '').downcase
|
13
|
+
|
14
|
+
if field_type == "textfield" && field.rows > 1
|
15
|
+
field_type = "textarea"
|
16
|
+
end
|
17
|
+
|
18
|
+
return field_type
|
19
|
+
end
|
20
|
+
|
11
21
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-form-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 9
|
10
|
+
version: 0.2.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -17,11 +17,13 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-06-
|
20
|
+
date: 2011-06-22 00:00:00 +01:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
24
|
-
|
24
|
+
prerelease: false
|
25
|
+
type: :development
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
27
|
none: false
|
26
28
|
requirements:
|
27
29
|
- - ">="
|
@@ -32,12 +34,12 @@ dependencies:
|
|
32
34
|
- 0
|
33
35
|
- 0
|
34
36
|
version: 1.0.0
|
35
|
-
|
36
|
-
type: :development
|
37
|
-
requirement: *id001
|
37
|
+
version_requirements: *id001
|
38
38
|
name: bundler
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
|
-
|
40
|
+
prerelease: false
|
41
|
+
type: :runtime
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
43
|
none: false
|
42
44
|
requirements:
|
43
45
|
- - ">="
|
@@ -46,9 +48,7 @@ dependencies:
|
|
46
48
|
segments:
|
47
49
|
- 0
|
48
50
|
version: "0"
|
49
|
-
|
50
|
-
type: :runtime
|
51
|
-
requirement: *id002
|
51
|
+
version_requirements: *id002
|
52
52
|
name: fastercsv
|
53
53
|
description: Functionality for building custom forms
|
54
54
|
email: []
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
requirements: []
|
206
206
|
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 1.
|
208
|
+
rubygems_version: 1.5.1
|
209
209
|
signing_key:
|
210
210
|
specification_version: 3
|
211
211
|
summary: Noodall Form Builder
|