Reputation: 73
I am using rails and MongoId. I have 3 models - User, Project and Role. I want to manage user roles based on projects. For example: user1 has assigned to 2 projects, for project1 user1 may be admin, for project2 user1 may be a Quality Analyst.
How I can achieve this when using mongoid in rails.
Thanks in Advance.
Upvotes: 0
Views: 162