Sha256: 08a101ead03c9f7c360f02c5ff306636fb6c870602eddf6b8a362e521a117c7f

Contents?: true

Size: 467 Bytes

Versions: 39

Compression:

Stored size: 467 Bytes

Contents

require 'database_cleaner/mongo_mapper/base'
require 'database_cleaner/generic/truncation'
require 'database_cleaner/mongo/truncation_mixin'

module DatabaseCleaner
  module MongoMapper
    class Truncation
      include ::DatabaseCleaner::MongoMapper::Base
      include ::DatabaseCleaner::Generic::Truncation
      include ::DatabaseCleaner::Mongo::TruncationMixin
      
      private

      def database
        ::MongoMapper.database
      end
    end
  end
end

Version data entries

39 entries across 34 versions & 6 rubygems

Version Path
database_cleaner-1.8.1 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.8.0 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-mongo_mapper-1.8.0 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.8.0.beta adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-mongo_mapper-1.8.0.beta lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.7.0 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.6.2 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.6.1 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.6.0 lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.5.3 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.5.2 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.5.1 lib/database_cleaner/mongo_mapper/truncation.rb
database_cleaner-1.5.0 lib/database_cleaner/mongo_mapper/truncation.rb