nested_fields_rails 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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' => object.id || options[:child_index])
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
@@ -1,3 +1,3 @@
1
1
  module NestedFieldsRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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.1
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-07-30 00:00:00.000000000 Z
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: []