mongoid/mongoid-locker

View on GitHub
lib/mongoid/locker/wrapper.rb

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Method find_and_lock has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def self.find_and_lock(doc, opts)
        model = doc.class
        filter = {
          _id: doc.id,
          '$or': [
Severity: Minor
Found in lib/mongoid/locker/wrapper.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status