Sha256: b28ca871b3806b3810893d2b44af264d4dd1fafd71e92806f55ef0c9a8aee7b3

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

module Slavery
  class Transaction
    class << self
      def base_depth
        @base_depth ||= begin
          testcase = ActiveSupport::TestCase
          if defined?(testcase) &&
              testcase.respond_to?(:use_transactional_fixtures) &&
              testcase.try(:use_transactional_fixtures)
            1
          else
            0
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slavery-2.1.0 lib/slavery/transaction.rb