acts_as_many_trees 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_many_trees/hierarchy_table.rb +1 -1
- data/lib/acts_as_many_trees/version.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: 470e6f4791e0acb15b9f6acffb5e576c2143f7f2
|
4
|
+
data.tar.gz: 291fc163aeffb728c54f176dffe70151ec16e7bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b84921e9a4dc3de94d6cbe6e09c1ae5568df1a2dcdcbec8d488148bbfc0eafcddae0827d7ea70a3082c990526835dc1c0090dd56814e73c6716343b66456122
|
7
|
+
data.tar.gz: 839aa50646e2d2a56f13b1f5bbb1078f6bc87fe42ae5c0196bdcd9f1638c1baeccce494e6a5c4f3d82a41006435d729639122d59cd4f7825d45c4d161b3fdfc8
|
@@ -154,7 +154,7 @@ module ActsAsManyTrees
|
|
154
154
|
and c.ancestor_id <> c.descendant_id
|
155
155
|
and c.hierarchy_scope = '#{existing_name}'
|
156
156
|
union
|
157
|
-
select #{wrk_parent.descendant_id},c.descendant_id
|
157
|
+
select #{wrk_parent.descendant_id},c.descendant_id,#{wrk_parent.generation}+c.generation+1,'#{temp_name}',c.position
|
158
158
|
from #{table_name} c
|
159
159
|
where c.ancestor_id = #{wrk_item.descendant_id}
|
160
160
|
and c.ancestor_id <> c.descendant_id
|