]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/deadlock_retry/init.rb
Make database offline mode work
[rails.git] / vendor / plugins / deadlock_retry / init.rb
index e090f68aff88265c275c6b5d6df1270b620e01af..9c00ea234cec8d77dc331e1d0c39beb5980a947f 100644 (file)
@@ -1,2 +1,5 @@
 require 'deadlock_retry'
-ActiveRecord::Base.send :include, DeadlockRetry
+
+if defined?(ActionRecord::Base)
+  ActiveRecord::Base.send :include, DeadlockRetry
+end