lib/avo/resources/items/tab.rb in avo-3.10.6 vs lib/avo/resources/items/tab.rb in avo-3.10.7
- old
+ new
@@ -2,10 +2,11 @@
prepend Avo::Concerns::IsResourceItem
include Avo::Concerns::HasItems
include Avo::Concerns::HasItemType
include Avo::Concerns::VisibleItems
+ include Avo::Concerns::IsVisible
include Avo::Concerns::VisibleInDifferentViews
delegate :items, :add_item, to: :items_holder
attr_accessor :description
@@ -14,9 +15,10 @@
@name = name
@description = description
@items_holder = Avo::Resources::Items::Holder.new
@view = Avo::ViewInquirer.new view
@args = args
+ @visible = args[:visible]
post_initialize if respond_to?(:post_initialize)
end
def name