Merge pull request #51685 from fffx/record_not_saved_doc

[Fix #51672] Update RDoc comments for  ActiveRecord::RecordNotSaved [ci skip]
This commit is contained in:
Rafael Mendonça França 2024-04-30 19:08:07 -03:00 committed by GitHub
commit 3e68225b72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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