mdeering/attribute_normalizer — pull request #19 by delta407 (2011-10-15 19:49:57+00:00)
Title: Treat table_exists? exceptions as an indication that the table does not exist

My application fails to boot when the configured database is unreachable. This would normally be acceptable, but causes problems in my environment. Heroku runs `rake assets:precompile` with a nonexistent database. Asset compilation in my application does not otherwise require database access, but the call to table_exists? within attribute_normalizer throws an exception that bubbles all the way up, preventing asset compilation.

This patch suppresses the exception, treating it identically to the situation where a model is defined for a non-existent table. This fixes my breakage, and seems like a reasonable solution.