I have 2 models (Workout, Equipment) that have and belong to many relationships. If I use Workout.find(:all, :joins => :equipment, :conditions => "equipment.id = 5")
, it works, but if I use Workout.find(:all, :joins => :equipment, :conditions => "equipment.id = null")
, it does not return records without association. Any ideas?
source share