Update Doc for ActiveRecord::RecordNotSaved to be consistent

This commit is contained in:
Fangxing 2024-04-29 20:49:00 +03:00
parent cc7f0b0d4c
commit 541681b2d9

@ -129,8 +129,10 @@ def initialize(message = nil, model = nil, primary_key = nil, id = nil)
end
# Raised by {ActiveRecord::Base#save!}[rdoc-ref:Persistence#save!] and
# {ActiveRecord::Base.create!}[rdoc-ref:Persistence::ClassMethods#create!]
# methods when a record is invalid and cannot be saved.
# {ActiveRecord::Base.update_attribute!}[rdoc-ref:Persistence#update_attribute!]
# methods when a record is failed to validate or cannot be saved due to any of the
# <tt>before_*</tt> callbacks throwing +:abort+. See
# ActiveRecord::Callbacks for further details
class RecordNotSaved < ActiveRecordError
attr_reader :record