# File lib/pacecar/helpers.rb, line 37 def safe_columns case ActiveRecord::Base.connection.adapter_name when 'MySQL' begin columns rescue Mysql::Error, ActiveRecord::StatementInvalid Array.new end when 'Mysql2' begin columns rescue Mysql2::Error, ActiveRecord::StatementInvalid Array.new end when 'SQLite', 'PostgreSQL' begin columns rescue ActiveRecord::StatementInvalid # If the table does not exist Array.new end end end