Module: Mongoid::Threaded::Lifecycle::ClassMethods
- Defined in:
- lib/mongoid/threaded/lifecycle.rb
Instance Method Summary collapse
-
#_creating ⇒ Object
Execute a block in creating mode.
Instance Method Details
#_creating ⇒ Object
Execute a block in creating mode.
154 155 156 157 158 159 |
# File 'lib/mongoid/threaded/lifecycle.rb', line 154 def _creating Threaded.begin_execution("create") yield ensure Threaded.exit_execution("create") end |