You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ActiveRecord::Persistence::ClassMethods#save! :
# There's a series of callbacks associated with #save!. If any of
# the <tt>before_*</tt> callbacks throws +:abort+ the action is cancelled
# and #save! raises ActiveRecord::RecordNotSaved. See
# ActiveRecord::Callbacks for further details.
But in ActiveRecord::RecordNotSaved:
# 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.
The doc in ActiveRecord::RecordNotSaved is not accurate, should we update the doc in ActiveRecord::RecordNotSaved to this?
# Raised by {ActiveRecord::Base#save!}[rdoc-ref:Persistence#save!] and
# {ActiveRecord::Base.create!}[rdoc-ref:Persistence::ClassMethods#create!]
# If any of the <tt>before_*</tt> callbacks throws +:abort+ , See
# ActiveRecord::Callbacks for further details.
The text was updated successfully, but these errors were encountered:
fffx
changed the title
Inconsistent documentation between ActiveRecord::RecordNotSaved and ActiveRecord::RecordNotSaved
Inconsistent documentation between ActiveRecord::RecordNotSaved and ActiveRecord::Persistence::ClassMethods#save!
Apr 26, 2024
In ActiveRecord::Persistence::ClassMethods#save! :
But in ActiveRecord::RecordNotSaved:
The doc in ActiveRecord::RecordNotSaved is not accurate, should we update the doc in ActiveRecord::RecordNotSaved to this?
The text was updated successfully, but these errors were encountered: