nested_fields_rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,7 @@ module NestedFieldsRails
|
|
45
45
|
alias default_fields_for_nested_model fields_for_nested_model
|
46
46
|
def fields_for_nested_model(name, object, options, block)
|
47
47
|
tag = options[:element_wrapper] || (options[:wrapper] && options[:wrapper].to_sym == :table ? :tr : nil) || :div
|
48
|
-
@template.content_tag(tag, default_fields_for_nested_model(name, object, options, block), :class => 'fields', 'data-object-id' =>
|
48
|
+
@template.content_tag(tag, default_fields_for_nested_model(name, object, options, block), :class => 'fields', 'data-object-id' => options[:child_index] || object.object_id)
|
49
49
|
end
|
50
50
|
|
51
51
|
private
|
data/nested_fields_rails.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["gabriel"]
|
9
9
|
s.email = ["gnaiman@keepcon.com"]
|
10
10
|
s.homepage = 'https://github.com/gabynaiman/nested_fields_rails'
|
11
|
-
s.summary = 'Manage multiple models the same form'
|
12
|
-
s.description = 'Manage multiple models the same form'
|
11
|
+
s.summary = 'Manage multiple models in the same form'
|
12
|
+
s.description = 'Manage multiple models in the same form'
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nested_fields_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,9 +9,9 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: Manage multiple models the same form
|
14
|
+
description: Manage multiple models in the same form
|
15
15
|
email:
|
16
16
|
- gnaiman@keepcon.com
|
17
17
|
executables: []
|
@@ -52,5 +52,5 @@ rubyforge_project:
|
|
52
52
|
rubygems_version: 1.8.16
|
53
53
|
signing_key:
|
54
54
|
specification_version: 3
|
55
|
-
summary: Manage multiple models the same form
|
55
|
+
summary: Manage multiple models in the same form
|
56
56
|
test_files: []
|