Sha256: 7edde1aec7c4654b3bb816db51465cfa6082909d9b0be0f938161ad01a877ab1

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

module DoorkeeperMongodb
  module Compatible
    extend ActiveSupport::Concern

    module ClassMethods
      def transaction(_ = {}, &block)
        yield
      end
    end

    def transaction(options = {}, &block)
      self.class.transaction(options, &block)
    end

    def lock!(_ = true)
      reload if persisted?
      self
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
doorkeeper-mongodb-3.0.0 lib/doorkeeper-mongodb/compatible.rb
dd-doorkeeper-mongodb-3.0.0 lib/doorkeeper-mongodb/compatible.rb