instance method
render_collection
Ruby on Rails 7.1.6
Since v3.0.20 Last seen in v8.0.4Signature
render_collection(event)
No documentation comment.
Parameters
-
eventreq
Source
# File actionview/lib/action_view/log_subscriber.rb, line 45
def render_collection(event)
identifier = event.payload[:identifier] || "templates"
debug do
message = +" Rendered collection of #{from_rails_root(identifier)}"
message << " within #{from_rails_root(event.payload[:layout])}" if event.payload[:layout]
message << " #{render_count(event.payload)} (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
message
end
end
Defined in actionview/lib/action_view/log_subscriber.rb line 45
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::LogSubscriber