formnestic 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/formnestic.gemspec +2 -2
- data/lib/formnestic/helpers/inputs_helper.rb +13 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 378acbe981c8058b6d6e6105a0009cf5f38f561cf8154b8b65b9bed52dca9f7d
|
4
|
+
data.tar.gz: 322c9cebfec61e08bbac6d18cc84fe46bf0bfc0adcdbfae5e0b8f94edc8c1975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7e6874272578eca36e0d82b6f3f0d01a33bfe0aae89505f5422234637ed411de8c9aa34be3ac554c70017c6c695b8881c02ec52100b78869aa80631da10763
|
7
|
+
data.tar.gz: 22000bb8c88983a8852e946921644b4ec3a85eb544d01801e4486ca12c90789a52f30ff28f56ac04c3d16847e1ed2357c02f92fd15b63482d866899c4aff3e65
|
data/formnestic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'formnestic'
|
8
|
-
s.version = '1.0.
|
8
|
+
s.version = '1.0.10'
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ['James']
|
12
|
-
s.date = '2018-
|
12
|
+
s.date = '2018-12-07'
|
13
13
|
s.description = 'An extension of famous Formtastic Form Builder to make building nested and association form with nested model addable and removable ability extremely easy and simple'
|
14
14
|
s.email = 'james@rubify.com'
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,9 +28,19 @@ formnestic_row_removing_content_tag(:table) : '')].join.html_safe, html_options)
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def formnestic_legend_for_list_form
|
31
|
-
record_name =
|
32
|
-
|
33
|
-
|
31
|
+
record_name = if options[:record_header].present?
|
32
|
+
options[:record_header]
|
33
|
+
else
|
34
|
+
object
|
35
|
+
.class
|
36
|
+
.to_s
|
37
|
+
.underscore
|
38
|
+
.tr('_', ' ')
|
39
|
+
.singularize
|
40
|
+
.downcase
|
41
|
+
.titleize
|
42
|
+
end
|
43
|
+
template.content_tag(:span, record_name, class: 'formnestic-li-fieldset-for')
|
34
44
|
end
|
35
45
|
|
36
46
|
def formnestic_row_removing_content_tag(form_type)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formnestic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|