Sha256: adbc0324036ab6e76a53c0a2195961c15e671de2f87771b3838eb98419aa59e0

Contents?: true

Size: 340 Bytes

Versions: 28

Compression:

Stored size: 340 Bytes

Contents

require 'database_cleaner/generic/base'
module DatabaseCleaner
  module MongoMapper
    def self.available_strategies
      %w[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

28 entries across 23 versions & 4 rubygems

Version Path
database_cleaner-1.7.0 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.6.2 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.6.1 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.6.0 lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.5.3 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.5.2 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.5.1 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.5.0 lib/database_cleaner/mongo_mapper/base.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/mongo_mapper/base.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/mongo_mapper/base.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.4.1 lib/database_cleaner/mongo_mapper/base.rb
database_cleaner-1.4.0 lib/database_cleaner/mongo_mapper/base.rb