Undefined method `find' for Project:Module

undefined method `find’ for Project:Module error

def find_projects
user = Person.find(session[:userid])
projects = Project.find(:all)
set = []
projects.each{ |project| set << project if
project.people.include?(user) }
return set

This is my code and i get an error for projects ‘find’ only, not for the
person ‘find’. I am moving to rails 3.2 from rails 2.3.5

Solved: My project name was also Project., So there was a clash