Flowdock
method

cleanup_view_runtime

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActiveRecord::Railties::ControllerRuntime
cleanup_view_runtime() protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/railties/controller_runtime.rb, line 21
      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
Register or log in to add new notes.