Class: Moped::Node

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

Overview

Mongoid 3 patches

Instance Method Summary collapse

Instance Method Details

#process(*args, &blk) ⇒ Object



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

def process(*args, &blk)
  return process_without_profiling(*args, &blk) unless SqlPatches.should_measure?

  result, _record = SqlPatches.record_sql(args[0].log_inspect) do
    process_without_profiling(*args, &blk)
  end
  result
end

#process_without_profilingObject



5
# File 'lib/patches/db/moped.rb', line 5

alias_method :process_without_profiling, :process