Sha256: 8ab2b5e328f4039f67e3e490bcec9e48fc8e1bc2011ab7100cad5ff59a248283
Contents?: true
Size: 733 Bytes
Versions: 11
Compression:
Stored size: 733 Bytes
Contents
require 'database_cleaner/mongoid/base' require 'database_cleaner/generic/truncation' require 'database_cleaner/mongo/truncation_mixin' require 'database_cleaner/moped/truncation_base' require 'mongoid/version' module DatabaseCleaner module Mongoid class Truncation include ::DatabaseCleaner::Mongoid::Base include ::DatabaseCleaner::Generic::Truncation if ::Mongoid::VERSION < '3' include ::DatabaseCleaner::Mongo::TruncationMixin private def database ::Mongoid.database end else include ::DatabaseCleaner::Moped::TruncationBase private def session ::Mongoid.default_session end end end end end
Version data entries
11 entries across 6 versions & 2 rubygems