This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

handle missing table error classes which changed in rails 3.1

  • Loading branch information...
1 parent eb9c9ab commit 6d3cd2143429d76149afe6a0202bb2a6022d065c @mjankowski mjankowski committed Sep 4, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pacecar/helpers.rb
View
@@ -48,13 +48,13 @@ def safe_columns
when 'MySQL'
begin
columns
- rescue Mysql::Error
+ rescue Mysql::Error, ActiveRecord::StatementInvalid
Array.new
end
when 'Mysql2'
begin
columns
- rescue Mysql2::Error
+ rescue Mysql2::Error, ActiveRecord::StatementInvalid
Array.new
end
when 'SQLite', 'PostgreSQL'

0 comments on commit 6d3cd21

Please sign in to comment.