lib/avo/resources/items/row.rb in avo-3.0.1.beta7 vs lib/avo/resources/items/row.rb in avo-3.0.1.beta8
- old
+ new
@@ -1,24 +1,24 @@
class Avo::Resources::Items::Row
include Avo::Concerns::IsResourceItem
include Avo::Concerns::HasItems
include Avo::Concerns::HasItemType
- include Avo::Concerns::IsVisible
+ include Avo::Concerns::VisibleItems
class_attribute :item_type, default: :row
attr_reader :view
attr_accessor :items_holder
delegate :items, :add_item, to: :items_holder
def initialize(view: nil)
- @view = view
+ @view = Avo::ViewInquirer.new view
@items_holder = Avo::Resources::Items::Holder.new
end
def hydrate(view: nil, resource: nil, **args)
- @view = view
+ @view = Avo::ViewInquirer.new view
@resource = resource
self
end