Files

Class/Module Index [+]

Quicksearch

ActiveRecord::Railties::ControllerRuntime

Protected Instance Methods

append_info_to_payload(payload) click to toggle source
# File lib/active_record/railties/controller_runtime.rb, line 24
def append_info_to_payload(payload)
  super
  payload[:db_runtime] = db_runtime
end
cleanup_view_runtime() click to toggle source
# File 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.