Flowdock
Ruby on Rails latest stable (v4.2.1) - 0 notes - Superclass: ActiveRecord::ActiveRecordError

Raised 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
Show files where this class is defined (1 file)
Register or log in to add new notes.