# 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 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
Generated with the Darkfish Rdoc Generator 2.