diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-09-24 00:33:43 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-09-24 00:33:43 +0300 |
commit | 8873a6f2cabca20306298058454068ad5f532635 (patch) | |
tree | 4bea94b0a33cbc0896ca963d6e4d43925272841d /activerecord | |
parent | 9c55ff564d21c178979cab126258123fa4b8b52a (diff) | |
download | rails-8873a6f2cabca20306298058454068ad5f532635.tar.gz rails-8873a6f2cabca20306298058454068ad5f532635.tar.bz2 rails-8873a6f2cabca20306298058454068ad5f532635.zip |
Fix ActiveRecord::Locking doc [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/locking/optimistic.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/locking/optimistic.rb b/activerecord/lib/active_record/locking/optimistic.rb index a09437b4b0..2336d23a1c 100644 --- a/activerecord/lib/active_record/locking/optimistic.rb +++ b/activerecord/lib/active_record/locking/optimistic.rb @@ -22,7 +22,7 @@ module ActiveRecord # p1.save # # p2.first_name = "should fail" - # p2.save # Raises a ActiveRecord::StaleObjectError + # p2.save # Raises an ActiveRecord::StaleObjectError # # Optimistic locking will also check for stale data when objects are destroyed. Example: # @@ -32,7 +32,7 @@ module ActiveRecord # p1.first_name = "Michael" # p1.save # - # p2.destroy # Raises a ActiveRecord::StaleObjectError + # p2.destroy # Raises an ActiveRecord::StaleObjectError # # 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. |