avo 3.11.1 → 3.11.2

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
  SHA256:
3
- metadata.gz: 6fb9b2eb3bd55c119f433e997421a3b00fca725e2af36b9bb810dc87679f5f9d
4
- data.tar.gz: 45f850bb69ee80c8a8a53c523104edbc63d3742df1032196f6c1987d72ec6c16
3
+ metadata.gz: a9103df42ec2aeea2fe56cc975be0f20e5cde5344c8c3488f0b5b6bfc90f982f
4
+ data.tar.gz: 8d6b921fdcb8fada66643c080b6e64664607a7af16f5fcbc7bd440ce82637937
5
5
  SHA512:
6
- metadata.gz: 772db05c13a06567ffce9b2fc431fd21f4e9cc326d80bf7f0684994b09a13874c0b140d24314ba75fce3aac60c155e9301937d120da811aa3c523fbbcfdbf217
7
- data.tar.gz: '095f7c0ffb23d81ebd58b9eedd94e103373ae554a29762e1663a61c810ae60a815d6d66b5a51faf45009c149dd0f2ba5e4b945c83c91a21acf6a27a56e743740'
6
+ metadata.gz: 8d5fb1d10d91ef6eadeb6a99d9bafc33275484a5bd7ba4d503f7737dabead9237f02fc4e3d97adaab4af625fa7bfac622925120e32d54232e3ba23d9191a1d8a
7
+ data.tar.gz: 37eca9cc2b36e2f92a652e8749cae8ef45bf3c4eea8636be82b5fc58aefad8d97a877a45fdad9f3c5b05d4c5d267b8da92ec18ecfd5a0a9b6c09f5ade8d6426a
data/Gemfile.lock CHANGED
@@ -106,7 +106,7 @@ GIT
106
106
  PATH
107
107
  remote: .
108
108
  specs:
109
- avo (3.11.1)
109
+ avo (3.11.2)
110
110
  actionview (>= 6.1)
111
111
  active_link_to
112
112
  activerecord (>= 6.1)
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Avo::Sidebar::BaseItemComponent < Avo::BaseComponent
4
- attr_reader :item
5
- delegate :items, :collapsable, :collapsed, to: :@item
4
+ attr_reader :item, :items
5
+ delegate :collapsable, :collapsed, to: :@item
6
6
 
7
7
  def initialize(item: nil)
8
8
  @item = item
9
+ @items = @item.items.select(&:visible?)
9
10
  end
10
11
 
11
12
  def render?
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.11.1" unless const_defined?(:VERSION)
2
+ VERSION = "3.11.2" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.1
4
+ version: 3.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin