instance method cleanup_view_runtime

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

cleanup_view_runtime()

No documentation comment.

Source
# File activerecord/lib/active_record/railties/controller_runtime.rb, line 12
      def cleanup_view_runtime
        if ActiveRecord::Base.connected?
          db_rt_before_render = ActiveRecord::LogSubscriber.reset_runtime
          runtime = super
          db_rt_after_render = ActiveRecord::LogSubscriber.reset_runtime
          self.db_runtime = db_rt_before_render + db_rt_after_render
          runtime - db_rt_after_render
        else
          super
        end
      end

Defined in activerecord/lib/active_record/railties/controller_runtime.rb line 12 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Railties::ControllerRuntime

Type at least 2 characters to search.

↑↓ navigate · open · esc close