categoryz3 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/categoryz3/categorizable.rb +2 -2
- data/lib/categoryz3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c80109fee40744e17c74e6da41f4fe38bd1d79e
|
4
|
+
data.tar.gz: 32fca0369c5a44621611651baa05df0622b12820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87e5e7d0fa471b1dca482f57b672e317f6cf94813848bda4a29eba7dfb014c1f522ff475914bed43d693c21027e01aba80ed100c1e681f472914a5bcba9275c3
|
7
|
+
data.tar.gz: 2038493438a8e1ca9fd6c51a2bd3d1c13352fff2876caeb9cbb1b89adf2256d9b8c7a9c318bf4abbb0c4fbd61059e29dbcfbaa5650c7d08b80f96ff704b00b46
|
@@ -35,10 +35,10 @@ module Categoryz3
|
|
35
35
|
class_name: 'Categoryz3::Category'
|
36
36
|
|
37
37
|
has_many :root_categories,
|
38
|
+
-> { where(parent_id: nil) },
|
38
39
|
through: :child_category_items,
|
39
40
|
source: 'category',
|
40
|
-
class_name: 'Categoryz3::Category'
|
41
|
-
conditions: { parent_id: nil }
|
41
|
+
class_name: 'Categoryz3::Category'
|
42
42
|
|
43
43
|
scope :inside_category ,
|
44
44
|
->(category) { joins(:child_category_items).where('categoryz3_child_items.category_id = ?' , category.id) }
|
data/lib/categoryz3/version.rb
CHANGED