class

ActiveRecord::NoDatabaseError::StaleObjectError

rails latest stable - Superclass: ActiveRecord::ActiveRecordError

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

Raised on attempt to save stale record. Record is stale when it’s being saved in another query after instantiation, for example, when two users edit the same wiki page and one starts editing and saves the page before the other.

Read more about optimistic locking in ActiveRecord::Locking module documentation.

Attributes

[R]attempted_action
[R]record

Files

  • activerecord/lib/active_record/errors.rb