Sha256: 2919e7c0363b354abe837855a287bcf82539974a0732d7cd6b293ec57c1c72d1

Contents?: true

Size: 397 Bytes

Versions: 13

Compression:

Stored size: 397 Bytes

Contents

require 'database_cleaner/generic/base'
module DatabaseCleaner
  module MongoMapper
    def self.available_strategies
      %w[truncation]
    end

    def self.default_strategy
      :truncation
    end

    module Base
      include ::DatabaseCleaner::Generic::Base

      def db=(desired_db)
        @db = desired_db
      end

      def db
        @db ||= :default
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
database_cleaner-1.99.0 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.99.0.beta adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-mongo_mapper-1.99.0.beta lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.5 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.4 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.3 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.2 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-mongo_mapper-1.8.1 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.1 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.0 adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-mongo_mapper-1.8.0 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.8.0.beta adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-mongo_mapper-1.8.0.beta lib/database_cleaner/mongo_mapper/base.rb