diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-06-05 02:35:05 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-06-06 13:27:51 -0400 |
commit | 4faaa811614b408b32422692ce36024442d02ffb (patch) | |
tree | 340a1cda35d66d2db76d36ca66fa6a9701b9734e /activerecord/lib/active_record/errors.rb | |
parent | 2186540f9160b47e075b9926d12d3a6843e95d31 (diff) | |
download | rails-4faaa811614b408b32422692ce36024442d02ffb.tar.gz rails-4faaa811614b408b32422692ce36024442d02ffb.tar.bz2 rails-4faaa811614b408b32422692ce36024442d02ffb.zip |
+ ActiveRecord::Base#destroy!
Diffstat (limited to 'activerecord/lib/active_record/errors.rb')
-rw-r--r-- | activerecord/lib/active_record/errors.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb index fc80f3081e..9b88bb8178 100644 --- a/activerecord/lib/active_record/errors.rb +++ b/activerecord/lib/active_record/errors.rb @@ -53,6 +53,10 @@ module ActiveRecord class RecordNotSaved < ActiveRecordError end + # Raised by ActiveRecord::Base.destroy! when a call to destroy would return false. + class RecordNotDestroyed < ActiveRecordError + end + # Raised when SQL statement cannot be executed by the database (for example, it's often the case for # MySQL when Ruby driver used is too old). class StatementInvalid < ActiveRecordError |