Sha256: 836a0a65057bd0175e1383897620399f47710dd3804f8583824024059f1d673e

Contents?: true

Size: 304 Bytes

Versions: 14

Compression:

Stored size: 304 Bytes

Contents

module DatabaseCleaner
  module Mongo2
    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 Mongo2::Database)")
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
database_cleaner-1.7.0 lib/database_cleaner/mongo2/base.rb
database_cleaner-1.6.2 lib/database_cleaner/mongo2/base.rb
database_cleaner-1.6.1 lib/database_cleaner/mongo2/base.rb
database_cleaner-1.6.0 lib/database_cleaner/mongo2/base.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/mongo2/base.rb
database_cleaner-1.5.3 lib/database_cleaner/mongo2/base.rb
database_cleaner-1.5.2 lib/database_cleaner/mongo2/base.rb
database_cleaner-1.5.1 lib/database_cleaner/mongo2/base.rb