activerecord-hierarchical_query 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c5308c4928b4519b1501e578fbe930058261e65
|
4
|
+
data.tar.gz: d466545e9b356e702a16a5ac6ee9b6fdc0ac37fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9ba821eecd7ad1f1e495c6280464b9e6dd75ce080b9251176441a63d2ca4f05e7d8c1c4f7cfe13eb027714791a01fb3e24476ac9de1511490e8f133d3d36a7
|
7
|
+
data.tar.gz: 5e1ef94d4c80629485d4092e26f534b7b003890337d89cefbd52ead9d21ca4864fe3df9610a03d46df7c009f8e56e3797641738e458c3ee162a66b7fe816b2bd
|
@@ -15,8 +15,8 @@ module ActiveRecord
|
|
15
15
|
|
16
16
|
def build
|
17
17
|
relation = @relation.joins(inner_join.to_sql)
|
18
|
-
# copy bound variables from inner subquery
|
19
|
-
relation.bind_values
|
18
|
+
# copy bound variables from inner subquery (remove duplicates)
|
19
|
+
relation.bind_values |= bind_values
|
20
20
|
# add ordering by "__order_column"
|
21
21
|
relation.order_values += order_columns if ordered?
|
22
22
|
|