aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/active_record_querying.textile
diff options
context:
space:
mode:
authorMichael Hutchinson <github@mhutchinson.com>2011-09-27 18:11:01 -0700
committerMichael Hutchinson <github@mhutchinson.com>2011-09-27 18:11:01 -0700
commit0678a5bb18b7045054a03bbe2ca0434486a7d404 (patch)
treed9c3144ac4ec090520d98815d2294de99d567cf1 /railties/guides/source/active_record_querying.textile
parent9f74ce29245c1a0ffe51e7e6af3d45871b275870 (diff)
downloadrails-0678a5bb18b7045054a03bbe2ca0434486a7d404.tar.gz
rails-0678a5bb18b7045054a03bbe2ca0434486a7d404.tar.bz2
rails-0678a5bb18b7045054a03bbe2ca0434486a7d404.zip
Corrected a typo.
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-rw-r--r--railties/guides/source/active_record_querying.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index 96f91cfef6..b1acdd189a 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/railties/guides/source/active_record_querying.textile
@@ -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.