nested_form_fields 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nested_form_fields.rb +2 -4
- data/lib/nested_form_fields/version.rb +1 -1
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4e97119df03a5a0b493fb2b070a2da267a0e987
|
4
|
+
data.tar.gz: 04c79c87cb44362dad3b7b75707a91541e0492c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c60320d32c3f874bcc666d472549e2ff002db9c16b10823e242db44a500d246f3e12da5a2803732e08f8c7b0859ddc11d02ecf3633683bd0fcc7f584e6e5ee
|
7
|
+
data.tar.gz: 39e314608c0b96319e158f6346bc0769d4cb9a0b5355a566f1c7a9a76121d3ad31e9acfaf0fc18dbbf032838554a528f2ff2b17d164c16bf0ad9339e935e7a60
|
data/lib/nested_form_fields.rb
CHANGED
@@ -68,11 +68,9 @@ module ActionView::Helpers
|
|
68
68
|
|
69
69
|
output = ActiveSupport::SafeBuffer.new
|
70
70
|
association.each do |child|
|
71
|
-
wrapper_options = options[:wrapper_options].clone ||
|
71
|
+
wrapper_options = options[:wrapper_options].clone || {}
|
72
72
|
if child._destroy == true
|
73
|
-
wrapper_options[:style] = wrapper_options[:style] ?
|
74
|
-
wrapper_options[:style] + ';' + 'display:none' :
|
75
|
-
'display:none'
|
73
|
+
wrapper_options[:style] = wrapper_options[:style] ? wrapper_options[:style] + ';' + 'display:none' : 'display:none'
|
76
74
|
end
|
77
75
|
output << nested_fields_wrapper(association_name, options[:wrapper_tag], options[:legend], wrapper_options) do
|
78
76
|
fields_for_nested_model("#{name}[#{options[:child_index] || nested_child_index(name)}]", child, options, block)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nico Ritsche
|
@@ -189,15 +189,23 @@ extra_rdoc_files: []
|
|
189
189
|
files:
|
190
190
|
- ".gitignore"
|
191
191
|
- ".rspec"
|
192
|
+
- ".sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/application.css.scssc"
|
193
|
+
- ".sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/normalize.css.scssc"
|
194
|
+
- ".sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/users.css.scssc"
|
192
195
|
- ".travis.yml"
|
193
196
|
- Gemfile
|
194
197
|
- LICENSE
|
195
198
|
- README.md
|
196
199
|
- Rakefile
|
200
|
+
- lib/assets/.DS_Store
|
201
|
+
- lib/assets/javascripts/.DS_Store
|
197
202
|
- lib/assets/javascripts/nested_form_fields.js.coffee
|
198
203
|
- lib/nested_form_fields.rb
|
199
204
|
- lib/nested_form_fields/version.rb
|
200
205
|
- nested_form_fields.gemspec
|
206
|
+
- spec/dummy/.sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/application.css.scssc
|
207
|
+
- spec/dummy/.sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/normalize.css.scssc
|
208
|
+
- spec/dummy/.sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/users.css.scssc
|
201
209
|
- spec/dummy/README.rdoc
|
202
210
|
- spec/dummy/Rakefile
|
203
211
|
- spec/dummy/app/assets/javascripts/application.js
|
@@ -239,6 +247,8 @@ files:
|
|
239
247
|
- spec/dummy/db/test.sqlite3
|
240
248
|
- spec/dummy/lib/assets/.gitkeep
|
241
249
|
- spec/dummy/log/.gitkeep
|
250
|
+
- spec/dummy/log/development.log
|
251
|
+
- spec/dummy/log/test.log
|
242
252
|
- spec/dummy/public/404.html
|
243
253
|
- spec/dummy/public/422.html
|
244
254
|
- spec/dummy/public/500.html
|
@@ -272,6 +282,9 @@ specification_version: 4
|
|
272
282
|
summary: Rails gem for dynamically adding and removing nested has_many association
|
273
283
|
fields in a form.
|
274
284
|
test_files:
|
285
|
+
- spec/dummy/.sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/application.css.scssc
|
286
|
+
- spec/dummy/.sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/normalize.css.scssc
|
287
|
+
- spec/dummy/.sass-cache/b3239b16cb7e494d5d4e969f1b84625be9aac82c/users.css.scssc
|
275
288
|
- spec/dummy/README.rdoc
|
276
289
|
- spec/dummy/Rakefile
|
277
290
|
- spec/dummy/app/assets/javascripts/application.js
|
@@ -313,6 +326,8 @@ test_files:
|
|
313
326
|
- spec/dummy/db/test.sqlite3
|
314
327
|
- spec/dummy/lib/assets/.gitkeep
|
315
328
|
- spec/dummy/log/.gitkeep
|
329
|
+
- spec/dummy/log/development.log
|
330
|
+
- spec/dummy/log/test.log
|
316
331
|
- spec/dummy/public/404.html
|
317
332
|
- spec/dummy/public/422.html
|
318
333
|
- spec/dummy/public/500.html
|