1 if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdapter)
3 module ConnectionAdapters
17 rescue ActiveRecord::StatementInvalid => ex
18 if ex.message =~ /^OSM::APITimeoutError: /
19 raise OSM::APITimeoutError.new
20 elsif ex.message =~ /^Timeout::Error: /
21 raise Timeout::Error.new("time's up!")