Class: Moped::Node
- Inherits:
-
Object
- Object
- Moped::Node
- Defined in:
- lib/patches/db/moped.rb
Overview
Mongoid 3 patches
Instance Method Summary collapse
Instance Method Details
#process(*args, &blk) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/patches/db/moped.rb', line 4 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 return result end |
#process_without_profiling ⇒ Object
3 |
# File 'lib/patches/db/moped.rb', line 3 alias_method :process_without_profiling, :process |