activerecord_cloneable 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- 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: 43e4ea83b293768d8ed0c3c5ac45dd5770573360
|
4
|
+
data.tar.gz: dcc26cd61cf78f0f826d61687ea65081b9de40ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83ce99176bb14ffabcebf75206df3de861deab10ef8f0074f2874cd8ec56a25c0c34fd8f9e111cd0181521088a4b9cb4c0faa0ec3d1aa162c17ec714f9a97627
|
7
|
+
data.tar.gz: 3e682815a835584ec41edb72c6a6f47dc222bb9b47a6f93be264cfe1f255a077de248b3721d73bbba88faa0428026cfce5c982b1a9492af3ba911da4467904f0
|
@@ -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.9'
|
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'
|
@@ -42,7 +42,7 @@ module ActiveRecord::Cloneable
|
|
42
42
|
def clone_belongs_to_relations( relations, cloned_record, args )
|
43
43
|
return if relations.nil?
|
44
44
|
relations.each do |parent_relation|
|
45
|
-
puts "Cloning #{parent_relation.name} with #{
|
45
|
+
puts "Cloning #{parent_relation.name} with #{args}"
|
46
46
|
obj = send( parent_relation.name )
|
47
47
|
next if obj.nil?
|
48
48
|
next if args[:skipped_children].include?( obj )
|