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



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

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

#response_without_miniprofilerObject



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

alias_method :response_without_miniprofiler, :response