Does anyone know if ActiveRecord has a way for you to specify that a Parent object can not be deleted if it has children?

I know that you can specify that a parent should--by default--delete all its children. But I can't seem to find anything on restricting this behaviour

Code:
has_many :dependent => :delete_all
Thanks