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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4e97119df03a5a0b493fb2b070a2da267a0e987
4
- data.tar.gz: 04c79c87cb44362dad3b7b75707a91541e0492c7
3
+ metadata.gz: d08aa37827c1b9b5b7defeb12240353cb618dd6c
4
+ data.tar.gz: c98c939d07251ebdf841ef69f764e2772733a9ab
5
5
  SHA512:
6
- metadata.gz: 04c60320d32c3f874bcc666d472549e2ff002db9c16b10823e242db44a500d246f3e12da5a2803732e08f8c7b0859ddc11d02ecf3633683bd0fcc7f584e6e5ee
7
- data.tar.gz: 39e314608c0b96319e158f6346bc0769d4cb9a0b5355a566f1c7a9a76121d3ad31e9acfaf0fc18dbbf032838554a528f2ff2b17d164c16bf0ad9339e935e7a60
6
+ metadata.gz: 3a471c499d9214ccd0e01820e513304d30b1b15e7dabe8e765fe954df34cd1962269e17eaebf45097852933244e0120d7d5b80b6c6ddc7750214035d5ba7ed02
7
+ data.tar.gz: 68c74b0fda40909e8713ac0ac600aa909dd44b316ff2576df7a4e5a611db210d6c1d53bef9b534e31b33ee91d33361dfd6721161fa3afdad39fde5e8dce7268d
@@ -3,6 +3,9 @@ rvm:
3
3
  - 2.0.0
4
4
  - 2.1.7
5
5
  - 2.2.3
6
+
7
+ before_install: gem install bundler -v 1.11.2
8
+
6
9
  before_script:
7
10
  - "export DISPLAY=:99.0"
8
11
  - "sh -e /etc/init.d/xvfb start"
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module NestedFormFields
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
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
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: 2015-11-22 00:00:00.000000000 Z
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.2.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