Skip to content

Commit

Permalink
Merge pull request #51685 from fffx/record_not_saved_doc
Browse files Browse the repository at this point in the history
[Fix #51672] Update RDoc comments for  ActiveRecord::RecordNotSaved [ci skip]
  • Loading branch information
rafaelfranca committed Apr 30, 2024
2 parents 894f079 + 541681b commit 3e68225
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions activerecord/lib/active_record/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3e68225

Please sign in to comment.