method

configure_dependency_for_has_one

configure_dependency_for_has_one(reflection)
private

Creates before_destroy callback methods that nullify, delete or destroy has_one associated objects, according to the defined :dependent rule. If the association is marked as :dependent => :restrict, create a callback that prevents deleting entirely.