method

_raise_record_not_destroyed

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::Persistence
_raise_record_not_destroyed() private

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/persistence.rb, line 1273
    def _raise_record_not_destroyed
      @_association_destroy_exception ||= nil
      key = self.class.primary_key
      raise @_association_destroy_exception || RecordNotDestroyed.new("Failed to destroy #{self.class} with #{key}=#{id}", self)
    ensure
      @_association_destroy_exception = nil
    end
Register or log in to add new notes.