-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
> Issue.where(["project IN (?)", current_user.projects])
>> *** TypeError Exception: can't convert Array into HashModel associations
- user has_many projects
- project has_many issues
My goal is to get all issues related to an user through his projects. I tried using 'OR' condition but again, it was unsuccessful as the where needs only hash.
Can you guide me to to achieve the goal using minimum API calls?
Metadata
Metadata
Assignees
Labels
No labels