simple_nested_set 0.1.2 → 0.1.3
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.
|
@@ -86,8 +86,8 @@ module SimpleNestedSet
|
|
|
86
86
|
SELECT tmp.pat
|
|
87
87
|
FROM (
|
|
88
88
|
SELECT n0.id, #{group_concat(db_adapter, "n1`.`slug" )} AS pat
|
|
89
|
-
FROM #{arel_table.name} AS n0
|
|
90
|
-
CROSS JOIN #{arel_table.name} AS n1
|
|
89
|
+
FROM (SELECT * FROM #{arel_table.name} ORDER BY `lft`) AS n0
|
|
90
|
+
CROSS JOIN (SELECT * FROM #{arel_table.name} ORDER BY `lft`) AS n1
|
|
91
91
|
WHERE #{scoping}
|
|
92
92
|
GROUP BY n0.id
|
|
93
93
|
) AS tmp
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_nested_set
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Sven Fuchs
|