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:
commit
3e68225b72
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user