Hi,
I wonder how I can insert “OR” in has_and_belongs_to_many conditions?
Code:
has_and_belongs_to_many :projects, :conditions =>
[“projects_users.user_id = 0”]
Console:
user.projects
SQL:
Project Load (0.3ms) … WHERE (“projects_users”.user_id = 1 AND
(projects_users.user_id = 0))
I wonder if I can change AND to OR
Thanks for help