Authorization plugin problem

Hi!

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

  @project = Project.new(params[:project])
  if @project.save
    @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

vendor/plugins/authorization/lib/publishare/object_roles_table.rb:
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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs