Module: MongoModel::DocumentExtensions::OptimisticLocking

Extended by:
ActiveSupport::Concern
Included in:
MongoModel::Document
Defined in:
lib/mongomodel/document/optimistic_locking.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#locking_enabled?Boolean

Returns:


21
22
23
# File 'lib/mongomodel/document/optimistic_locking.rb', line 21

def locking_enabled?
  self.class.locking_enabled?
end