Skip to content

Commit 541681b

Browse files
committed
Update Doc for ActiveRecord::RecordNotSaved to be consistent
1 parent cc7f0b0 commit 541681b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

activerecord/lib/active_record/errors.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ def initialize(message = nil, model = nil, primary_key = nil, id = nil)
129129
end
130130

131131
# Raised by {ActiveRecord::Base#save!}[rdoc-ref:Persistence#save!] and
132-
# {ActiveRecord::Base.create!}[rdoc-ref:Persistence::ClassMethods#create!]
133-
# methods when a record is invalid and cannot be saved.
132+
# {ActiveRecord::Base.update_attribute!}[rdoc-ref:Persistence#update_attribute!]
133+
# methods when a record is failed to validate or cannot be saved due to any of the
134+
# <tt>before_*</tt> callbacks throwing +:abort+. See
135+
# ActiveRecord::Callbacks for further details
134136
class RecordNotSaved < ActiveRecordError
135137
attr_reader :record
136138

0 commit comments

Comments
 (0)