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 +4 -4
- data/activerecord_cloneable.gemspec +1 -1
- data/lib/active_record/cloneable.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66fb4191da19f4bb3867b2d96386443a62afb7d2
|
|
4
|
+
data.tar.gz: 6e745acb6ce0a73db1d4a634c2408855bfedd43e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 =
|
|
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 ],
|