Sha256: 756c850bf45165682e9b7b64922fdaa1b5aa4b8a42c9ed6fa4201ab6b6a67593

Contents?: true

Size: 302 Bytes

Versions: 43

Compression:

Stored size: 302 Bytes

Contents

module DatabaseCleaner
  module Mongo
    def self.available_strategies
      %w[truncation]
    end
    module Base
      def db=(desired_db)
        @db = desired_db
      end

      def db
        @db || raise("You have not specified a database.  (see Mongo::Database)")
      end
    end
  end
end

Version data entries

43 entries across 38 versions & 6 rubygems

Version Path
database_cleaner-mongo-1.8.1 lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.5 adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.4 adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.3 adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.2 adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.1 adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.0 adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-mongo-1.8.0 lib/database_cleaner/mongo/base.rb
database_cleaner-1.8.0.beta adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb
database_cleaner-mongo-1.8.0.beta lib/database_cleaner/mongo/base.rb
database_cleaner-1.7.0 lib/database_cleaner/mongo/base.rb
database_cleaner-1.6.2 lib/database_cleaner/mongo/base.rb
database_cleaner-1.6.1 lib/database_cleaner/mongo/base.rb
database_cleaner-1.6.0 lib/database_cleaner/mongo/base.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo/base.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo/base.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo/base.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo/base.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo/base.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo/base.rb