acts_as_many_trees 0.0.5 → 0.0.6

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: 2968bbb9d336c54e6d67fbcfa2693a7340dd73bf
4
- data.tar.gz: b97258ba8b2bd548d842345d6f5640ee3aa8c412
3
+ metadata.gz: 5830fa861ba6a6d478abca5c1ec6277ada647790
4
+ data.tar.gz: 8dd8ecd5fc49d5155811b671fd87642736f021ac
5
5
  SHA512:
6
- metadata.gz: 793df7daa449ca0ac8bfd911710314749ae1b7c6ee3b2b3a1f5331ed4ad76b6db2f92edd672175abc8099329afe1db1eba36dab4c0c87e3081bbf3d06c9b5fac
7
- data.tar.gz: b0bff842b040b01c21d9d8019f9524b9e148caf0e6a58177f06ccb8e8932a5a4f2dca19c7a29f7ef66e58261f005ec0e8b8d4f7f295dbbaf732e68e9d747f1f7
6
+ metadata.gz: f16d138a22cd7848e9ac60b07c43dcdd529866f38bbd8c4d9c2b684ed7d7e21ee1927539f6aab18b8b60741afd4110db08539c6fd83a7737f73dfee4227060e1
7
+ data.tar.gz: dfcaa8f53e61ca2d5df1d20c22069b85cae12255c80ab2aad986694cc632b31a207bf3798c7363e92c41f5361daf2eef6f7e7be05e313e525284d2a2ac80873c
@@ -45,12 +45,12 @@ module ActsAsManyTrees
45
45
  :source=>:item_siblings
46
46
  }
47
47
  has_many :siblings_before,
48
- ->{where('unscoped_ancestor_links_siblings_before_join.position > item_hierarchies.position').where('unscoped_ancestor_links_siblings_before_join.generation=1')},
48
+ ->{where("unscoped_ancestor_links_siblings_before_join.position > #{hierarchy_table_name}.position").where('unscoped_ancestor_links_siblings_before_join.generation=1')},
49
49
  {:through=>:unscoped_ancestor_links,
50
50
  :source=>:item_siblings
51
51
  }
52
52
  has_many :siblings_after,
53
- ->{where('unscoped_ancestor_links_siblings_after_join.position < item_hierarchies.position').where('unscoped_ancestor_links_siblings_after_join.generation=1')},
53
+ ->{where("unscoped_ancestor_links_siblings_after_join.position < #{hierarchy_table_name}.position").where('unscoped_ancestor_links_siblings_after_join.generation=1')},
54
54
  {:through=>:unscoped_ancestor_links,
55
55
  :source=>:item_siblings
56
56
  }
@@ -1,3 +1,3 @@
1
1
  module ActsAsManyTrees
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_many_trees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Small