X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bf29550db840c97cafffbe1e836750bef6c7942d..6a3cadb52d010b333a4acea8942bc4c13394e236:/vendor/plugins/deadlock_retry/init.rb?ds=sidebyside diff --git a/vendor/plugins/deadlock_retry/init.rb b/vendor/plugins/deadlock_retry/init.rb index e090f68af..2d7c5f36e 100644 --- a/vendor/plugins/deadlock_retry/init.rb +++ b/vendor/plugins/deadlock_retry/init.rb @@ -1,2 +1,5 @@ require 'deadlock_retry' -ActiveRecord::Base.send :include, DeadlockRetry + +if defined?(ActiveRecord::Base) + ActiveRecord::Base.send :include, DeadlockRetry +end