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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69526af5ee6719afe5a192596c08e14854349b0d
4
- data.tar.gz: 2f3ceeec6fba79a8632aceb7828f5eb0841457e4
3
+ metadata.gz: 5c80109fee40744e17c74e6da41f4fe38bd1d79e
4
+ data.tar.gz: 32fca0369c5a44621611651baa05df0622b12820
5
5
  SHA512:
6
- metadata.gz: 908aa26903456b8323248feac36cfc39e3aaba3ca6778d8976806cc62455697916e55854e38ba2e020b248f8bcfb43d2501da29c4fca2383f837406bc54a0a5a
7
- data.tar.gz: a111b9674dbe7e13f7f8708298d8fce57aa36cb8bb31c0c2598ca7b50a0aa1ae5793982988b550f812080a51563f5acecb12614ad6eca3ba6be6b1b797b66021
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) }
@@ -1,3 +1,3 @@
1
1
  module Categoryz3
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: categoryz3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Scolari