Class: Standby::Transaction
- Inherits:
-
Object
- Object
- Standby::Transaction
- Defined in:
- lib/standby/transaction.rb
Constant Summary collapse
- TEST_CONFIG_METHODS =
The methods on ActiveSupport::TestCase which can potentially be used to determine if transactional fixtures are enabled
[ :use_transactional_tests, :use_transactional_fixtures ]
Class Method Summary collapse
Class Method Details
.base_depth ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/standby/transaction.rb', line 11 def base_depth @base_depth ||= if defined?(ActiveSupport::TestCase) && transactional_fixtures_enabled? then 1 else 0 end end |