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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e281623f8c90a084c73a74df1ba4410e290e7718bbd309f0b7692dca5f5cbb39
4
- data.tar.gz: 323e7995e366b181b816f23cbefc7eeb137607c5c9df9c5db6d6bdcea4a38b2f
3
+ metadata.gz: 378acbe981c8058b6d6e6105a0009cf5f38f561cf8154b8b65b9bed52dca9f7d
4
+ data.tar.gz: 322c9cebfec61e08bbac6d18cc84fe46bf0bfc0adcdbfae5e0b8f94edc8c1975
5
5
  SHA512:
6
- metadata.gz: 5e533786817be4cc37a4c33cf8efa1ffb5c66e05f2ae7085f7133ee288e8c872d6a842f19d004001af8e56afc58ea376d4a577fe194f1c3235e98015c182a201
7
- data.tar.gz: 2a4725a220dc4f31dd5e611c79b18b50173ec941372caa3048867d8416e12f53417dbfc277ee1af438c14f433947b50bf5c89f84b5b1020c16e8ef9d0066fd93
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.9'
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-04-14'
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 = object.class.to_s.underscore.tr('_', ' ').singularize.downcase
32
- entity_name = I18n.t("activerecord.models.#{object.class.to_s.underscore.downcase}", default: record_name)
33
- template.content_tag(:span, record_name.titleize, class: 'formnestic-li-fieldset-for')
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.9
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-04-14 00:00:00.000000000 Z
11
+ date: 2018-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack