1 if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
4 module PropagateTimeouts
5 def translate_exception_class(e, sql)
6 if e.is_a?(Timeout::Error) || e.is_a?(OSM::APITimeoutError)
16 ActiveRecord::ConnectionAdaptors::AbstractAdapter.prepend(OpenStreetMap::AbstractAdapter::PropagateTimeouts)