Rails3 compatibility: use ::Query in Project model