instance method
cleanup_view_runtime
Ruby on Rails 7.2.3
Since v5.2.8.1 Private — implementation detail, not part of the public APISignature
cleanup_view_runtime()
A hook which allows you to clean up any time, wrongly taken into account in views, like database querying time.
def cleanup_view_runtime
super - time_taken_in_something_expensive
end
Source
# File actionpack/lib/action_controller/metal/instrumentation.rb, line 100
def cleanup_view_runtime # :doc:
yield
end
Defined in actionpack/lib/action_controller/metal/instrumentation.rb line 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Instrumentation