Sha256: 7545d5abb110b14c4fe6779d1e68fcfb33c073798ee607b56ea443514b0c2b44

Contents?: true

Size: 416 Bytes

Versions: 25

Compression:

Stored size: 416 Bytes

Contents

module ::DatabaseCleaner
  module Generic
    module Base

      def self.included(base)
        base.extend(ClassMethods)
      end

      def db
        :default
      end

      def cleaning(&block)
        begin
          start
          yield
        ensure
          clean
        end
      end

      module ClassMethods
        def available_strategies
          %W[]
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 3 rubygems

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