nested_form_fields 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/lib/nested_form_fields.rb +1 -1
- data/lib/nested_form_fields/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d08aa37827c1b9b5b7defeb12240353cb618dd6c
|
4
|
+
data.tar.gz: c98c939d07251ebdf841ef69f764e2772733a9ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a471c499d9214ccd0e01820e513304d30b1b15e7dabe8e765fe954df34cd1962269e17eaebf45097852933244e0120d7d5b80b6c6ddc7750214035d5ba7ed02
|
7
|
+
data.tar.gz: 68c74b0fda40909e8713ac0ac600aa909dd44b316ff2576df7a4e5a611db210d6c1d53bef9b534e31b33ee91d33361dfd6721161fa3afdad39fde5e8dce7268d
|
data/.travis.yml
CHANGED
data/lib/nested_form_fields.rb
CHANGED
@@ -97,7 +97,7 @@ module ActionView::Helpers
|
|
97
97
|
class: for_template ? 'form_template' : nil,
|
98
98
|
style: for_template ? 'display:none' : nil ) do
|
99
99
|
nested_fields_wrapper(association_name, options[:wrapper_tag], options[:legend], options[:wrapper_options]) do
|
100
|
-
association_class = (options[:class_name] || association_name).to_s.classify.constantize
|
100
|
+
association_class = (options[:class_name] || object.public_send(association_name).klass.name).to_s.classify.constantize
|
101
101
|
fields_for_nested_model("#{name}[#{index_placeholder(association_name)}]",
|
102
102
|
association_class.new,
|
103
103
|
options.merge(for_template: true), block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nested_form_fields
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico Ritsche
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
276
|
version: '0'
|
277
277
|
requirements: []
|
278
278
|
rubyforge_project:
|
279
|
-
rubygems_version: 2.
|
279
|
+
rubygems_version: 2.4.6
|
280
280
|
signing_key:
|
281
281
|
specification_version: 4
|
282
282
|
summary: Rails gem for dynamically adding and removing nested has_many association
|