Commit 5e5a2ecb by Sergey Alekseev Committed by John Hawthorn

fix deprecation warning for `after_rollback`/`after_commit` callbacks

DEPRECATION WARNING: Currently, Active Record suppresses errors raised within `after_rollback`/`after_commit` callbacks and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors will propagate normally just like in other Active Record callbacks.

apply the deprecation fix for ActiveRecord >= 4.2 only
parent 1dcdf362
require 'active_record'
ActiveRecord::Base.raise_in_transactional_callbacks = true if ActiveRecord::VERSION::STRING >= '4.2'
test_framework = if ActiveRecord::VERSION::STRING >= "4.1"
require 'minitest/autorun'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment