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: 76f5e82aca51ebd96a9cc00a729b5f418e6fa385
4
- data.tar.gz: 3ea6fa61b8b16e6ca0e18948d9280c70417a6386
3
+ metadata.gz: 3c5308c4928b4519b1501e578fbe930058261e65
4
+ data.tar.gz: d466545e9b356e702a16a5ac6ee9b6fdc0ac37fe
5
5
  SHA512:
6
- metadata.gz: 5af1b963cdc7763d04a445c1ef248c0ac53bef531b45b15a20cc7a3743e34291a8a0b92bd79786cfec44a60c64f517679f0da57520eeb630665a23d84832b8e6
7
- data.tar.gz: f5c489b92a0422ac00dbaec5f6df28ef931e7b835c4a0b7a3f99d95a6e66e8c2616932f19b858b6772fc91f72a9d4b640b6a684c7dbdaee5daeb347202a98301
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 += 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
 
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module HierarchicalQuery
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-hierarchical_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexei Mikhailov