Rails Supprimer l'enfant sur la suppression des parents

class Widgets < ActiveRecord::Base
  has_many :whatevers, :dependent => :destroy
end
Loriel Desamito