Replaces repository_enable named scope on Project with a more generic one: has_module.
The new named scope uses raw sql condition to avoid enabled_modules association loading.
Authored by: jplang 2008-09-13
Parent: [r1804]
Child: [r1806]