Sha256: 65f29ccd703123a962b804f214d2d1b9637d632b3504644df63271fdca468cd9

Contents?: true

Size: 352 Bytes

Versions: 28

Compression:

Stored size: 352 Bytes

Contents

require 'database_cleaner/generic/base'
module DatabaseCleaner
  module DataMapper
    def self.available_strategies
      %w[truncation transaction]
    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/data_mapper/base.rb
database_cleaner-1.6.2 lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.6.1 lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.6.0 lib/database_cleaner/data_mapper/base.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/database_cleaner-1.5.3/lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.5.3 lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.5.2 lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.5.1 lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.5.0 lib/database_cleaner/data_mapper/base.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/data_mapper/base.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/data_mapper/base.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/database_cleaner-1.4.1/lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.4.1 lib/database_cleaner/data_mapper/base.rb
database_cleaner-1.4.0 lib/database_cleaner/data_mapper/base.rb