Flowdock
method

configure_dependency_for_has_one

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::Associations::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

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.

Show source
Register or log in to add new notes.