method

_raise_record_not_destroyed

Importance_0
v7.0.0 - 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 1113
    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}=#{send(key)}", self)
    ensure
      @_association_destroy_exception = nil
    end
Register or log in to add new notes.