Flowdock
cleanup_view_runtime() private

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 30
        def cleanup_view_runtime
          if logger && logger.info? && ActiveRecord::Base.connected?
            db_rt_before_render = ActiveRecord::LogSubscriber.reset_runtime
            self.db_runtime = (db_runtime || 0) + db_rt_before_render
            runtime = super
            db_rt_after_render = ActiveRecord::LogSubscriber.reset_runtime
            self.db_runtime += db_rt_after_render
            runtime - db_rt_after_render
          else
            super
          end
        end
Register or log in to add new notes.