simple_nested_set 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SimpleNestedSet
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs