class RailsBand::ActionView::Event::RenderPartial
A wrapper for the event that is passed to ‘render_partial.action_view`.
Public Instance Methods
cache_hit()
click to toggle source
# File lib/rails_band/action_view/event/render_partial.rb, line 22 def cache_hit @cache_hit ||= @event.payload.fetch(:cache_hit) end
identifier()
click to toggle source
# File lib/rails_band/action_view/event/render_partial.rb, line 12 def identifier @identifier ||= from_views(@event.payload.fetch(:identifier)) end
layout()
click to toggle source
# File lib/rails_band/action_view/event/render_partial.rb, line 16 def layout return @layout if defined? @layout @layout = @event.payload[:layout]&.yield_self { |layout| from_views(layout) } end