-
Notifications
You must be signed in to change notification settings - Fork 94
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels