class Moped::Node

Public Instance Methods

process(*args,&blk) click to toggle source
# File Ruby/lib/patches/sql_patches.rb, line 176
def process(*args,&blk)
  current = ::Rack::MiniProfiler.current
  return process_without_profiling(*args,&blk) unless current && current.measure

  start = Time.now
  result = process_without_profiling(*args,&blk)
  elapsed_time = ((Time.now - start).to_f * 1000).round(1)
  result.instance_variable_set("@miniprofiler_sql_id", ::Rack::MiniProfiler.record_sql(args[0].log_inspect, elapsed_time))

  result
end
Also aliased as: process_without_profiling
process_without_profiling(*args,&blk)
Alias for: process