motion/cdq/object.rb in cdq-0.1.9 vs motion/cdq/object.rb in cdq-0.1.10
- old
+ new
@@ -16,12 +16,12 @@
def models
@@model_manager ||= CDQModelManager.new
end
def reset!(opts = {})
- @@context_manager.reset!
+ @@context_manager.reset! if @@context_manager
@@context_manager = nil
- @@store_manager.reset!
+ @@store_manager.reset! if @@store_manager
@@store_manager = nil
end
def setup(opts = {})
if opts[:context]