nathanl/searchlight — pull request #15 by mnarayan01 (2013-08-19 12:53:23+00:00)
Title: Gracefully handle eager-loading of a Search prior to DB creation

Gracefully handle eager-loading a Search when the database/table corresponding to the search object has not yet been created (e.g. when using `rake assets:precompile`).

If an exception occurs, we assume that the column _does_ exist, and thus generate a search method which queries on that column. Obviously this search will generate a DB exception if it is ever run.