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