lib/avo/resources/items/tab.rb in avo-3.0.1.beta7 vs lib/avo/resources/items/tab.rb in avo-3.0.1.beta8
- old
+ new
@@ -1,21 +1,21 @@
class Avo::Resources::Items::Tab
prepend Avo::Concerns::IsResourceItem
include Avo::Concerns::HasItems
include Avo::Concerns::HasItemType
- include Avo::Concerns::IsVisible
+ include Avo::Concerns::VisibleItems
include Avo::Concerns::VisibleInDifferentViews
delegate :items, :add_item, to: :items_holder
attr_accessor :description
def initialize(name: nil, description: nil, view: nil, **args)
@name = name
@description = description
@items_holder = Avo::Resources::Items::Holder.new
- @view = view
+ @view = Avo::ViewInquirer.new view
@args = args
post_initialize if respond_to?(:post_initialize)
end