cassiomarques/enumerate_it — pull request #19 by willrjmarshall (2012-02-22 01:15:19+00:00)
Title: Fixing a bug in which migrations could fail when enumerate_it was used

Occasionally, when a migration needed to load a class that enumerate_it has was used on, the automatically generated scopes would attempt to access the DB, and could fail (breaking the migration) if the table corresponding to the model did not yet exist.

I've wrapped the scopes in lambdas to prevent this from happening.