class RecordNotDestroyed
Ruby on Rails 7.1.6
Since v4.0.13Raised by ActiveRecord::Base#destroy! when a call to #destroy would return false.
begin complex_operation_that_internally_calls_destroy! rescue ActiveRecord::RecordNotDestroyed => invalid puts invalid.record.errors end
Inherits from
Attributes
Methods (defined here)
- self. new