due modelli:Verificare che almeno un record hanno un determinato attributo impostato su veri
class Task < ActiveRecord::Base
has_many :subtasks
end
class Subtask < ActiveRecord::Base
belongs_to :task
end
Sottoattività hanno attributo booleano che impostata su true se sottoattività è completa.
Come posso verificare se un'attività ha almeno una attività secondaria completata?