instance method cleanup_view_runtime

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

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 86
    def cleanup_view_runtime # :doc:
      yield
    end

Defined in actionpack/lib/action_controller/metal/instrumentation.rb line 86 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Instrumentation

Type at least 2 characters to search.

↑↓ navigate · open · esc close