X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/252c2f70225595312151bcf77ee7c8f5aac0c831..b2e9d8176b1e66356330230ee892d7204dd8eeca:/vendor/plugins/deadlock_retry/init.rb 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