Authorization plugin base_class method


I’m using Rails 2.0.2 and i’ve install “authorization plugin”, Now
when I write something like this:

  @project =[:project])
    @manager = User.find(params[:project][:user_id])
    @manager.has_role "manager of :project", :project => @project

i’m getting error:

undefined method `base_class’ for Hash:Class

62:in get_role' vendor/plugins/authorization/lib/publishare/object_roles_table.rb: 32:inhas_role’
app/controllers/projects_controller.rb:21:in save' app/controllers/projects_controller.rb:16:insave’

Any ideas why?

Ok, I see now that in plugin thinks @project is a Hash class. But when
I display @project.class in my controller I get Project

so what it changes in some magic way??