instance method
cleanup_view_runtime
Ruby on Rails 7.0.10
Since v5.2.8.1 PrivateSignature
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 90
def cleanup_view_runtime # :doc:
yield
end
Defined in actionpack/lib/action_controller/metal/instrumentation.rb line 90
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Instrumentation