mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Corrected a typo.
This commit is contained in:
@@ -616,7 +616,7 @@ c1.first_name = "Michael"
|
||||
c1.save
|
||||
|
||||
c2.name = "should fail"
|
||||
c2.save # Raises a ActiveRecord::StaleObjectError
|
||||
c2.save # Raises an ActiveRecord::StaleObjectError
|
||||
</ruby>
|
||||
|
||||
You're then responsible for dealing with the conflict by rescuing the exception and either rolling back, merging, or otherwise apply the business logic needed to resolve the conflict.
|
||||
|
||||
Reference in New Issue
Block a user