Class: Neo4j::Core::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/db/neo4j.rb

Instance Method Summary collapse

Instance Method Details

#responseObject Also known as: response_with_miniprofiler



6
7
8
9
10
11
12
13
# File 'lib/patches/db/neo4j.rb', line 6

def response
  return @response if @response
  start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
  rval = response_without_miniprofiler
  elapsed_time = SqlPatches.elapsed_time(start)
  Rack::MiniProfiler.record_sql(to_cypher, elapsed_time)
  rval
end

#response_without_miniprofilerObject



4
# File 'lib/patches/db/neo4j.rb', line 4

alias_method :response_without_miniprofiler, :response