class RailsBand::ActionView::Event::RenderCollection
A wrapper for the event that is passed to ‘render_collection.action_view`.
def cache_hits
def cache_hits return @cache_hits if defined? @cache_hits @cache_hits = @event.payload[:cache_hits] end
def count
def count @count ||= @event.payload.fetch(:count) end
def identifier
def identifier @identifier ||= from_views(@event.payload.fetch(:identifier)) end
def layout
def layout return @layout if defined? @layout @layout = @event.payload[:layout]&.then { |layout| from_views(layout) } end