lib/reactor.rb in reactor-0.9.6 vs lib/reactor.rb in reactor-0.9.7
- old
+ new
@@ -44,7 +44,12 @@
yield if block_given?
disable_test_mode_subscriber klass
end
end
+# Temporarily avoid Rails 4.2.0 deprecation warning
+if ActiveRecord::VERSION::STRING > '4.2'
+ ActiveRecord::Base.raise_in_transactional_callbacks = true
+end
+
ActiveRecord::Base.send(:include, Reactor::Publishable)
ActiveRecord::Base.send(:include, Reactor::Subscribable)