Sha256: 5227e6124c5c0d7262d3fb4cb709ce2099ac0ff5e8e25be09a61464674df32ff

Contents?: true

Size: 335 Bytes

Versions: 77

Compression:

Stored size: 335 Bytes

Contents

require 'database_cleaner/generic/base'
module DatabaseCleaner
  module Mongoid
    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

77 entries across 66 versions & 9 rubygems

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