activerecord_cloneable 0.3.15 → 0.3.16

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 700597ad7e34f2e24f51a08af394003c8657a0d6
4
- data.tar.gz: 658530761cfad7f8fea4291e44ee7c24fbae9636
3
+ metadata.gz: 66fb4191da19f4bb3867b2d96386443a62afb7d2
4
+ data.tar.gz: 6e745acb6ce0a73db1d4a634c2408855bfedd43e
5
5
  SHA512:
6
- metadata.gz: 5d84b1baf0a9f5199977b952151c17acec2f16ec23972a38a13d3fa44a72bec317f3c265e6a1faa1945475714a07481de6eb12504d343bea6f86e785c19450e2
7
- data.tar.gz: 2377a1e6eb8d22dbdb6bf2021283a0ff8470e26a6ce06f7517f5762258245e11437e7670f739348b11536d9a030be4d6af7a64ddb88bbe6110a795e22ac453a7
6
+ metadata.gz: 6b6a7e4072ef7c19f79320001e371960c52761cefb249e48f7205289c9619578221e5909b78bed9b20dc5567ad24d2a93e1759d182a9b0ff4ef5c2106332ba42
7
+ data.tar.gz: e24396af629302941fe9ba271ecab71530d8b29d3d37face8147a4a3b02b028100e613b8a0b8f3662c8223c9748dc1148c752a59aad0a413aefbe8615a5f30de
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'activerecord_cloneable'
3
- s.version = '0.3.15'
3
+ s.version = '0.3.16'
4
4
  s.summary = "A library to help clone active records - that is, generate active new record objects with the data copied from an existing record."
5
5
  s.authors = ["Adam Palmblad"]
6
6
  s.email = 'apalmblad@gmail.com'
@@ -116,7 +116,7 @@ module ActiveRecord::Cloneable
116
116
  kids.each do |child_record|
117
117
  next if args[:skipped_children].include?( child_record )
118
118
  args[:skipped_children] += [child_record]
119
- cloned_child_record = kids.build
119
+ cloned_child_record = send( child_relation.name ).build
120
120
  child_args = { cloned_parents: args[:cloned_parents] + [self],
121
121
  attributes: {},
122
122
  stack: args[:stack] + [ child_relation.name ],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_cloneable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.15
4
+ version: 0.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Palmblad