Flowdock
method

handle_dependency

Importance_0
v5.2.3 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::BelongsToAssociation
handle_dependency() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/belongs_to_association.rb, line 7
      def handle_dependency
        return unless load_target

        case options[:dependent]
        when :destroy
          target.destroy
          raise ActiveRecord::Rollback unless target.destroyed?
        else
          target.send(options[:dependent])
        end
      end
Register or log in to add new notes.