Skip to content
Browse files

Change 'racing condition' to 'race condition'.

  • Loading branch information...
1 parent fb51ccd commit 63c7dcfeaac680d6596b72f1619e74f89e538ed4 @FooBarWidget FooBarWidget committed Sep 22, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/validations.rb
View
4 activerecord/lib/active_record/validations.rb
@@ -642,7 +642,7 @@ def validates_length_of(*attrs)
#
# Using this validation method in conjunction with ActiveRecord::Base#save
# does not guarantee the absence of duplicate record insertions, because
- # uniqueness checks on the application level are inherently prone to racing
+ # uniqueness checks on the application level are inherently prone to race
# conditions. For example, suppose that two users try to post a Comment at
# the same time, and a Comment's title must be unique. At the database-level,
# the actions performed by these users could be interleaved in the following manner:
@@ -685,7 +685,7 @@ def validates_length_of(*attrs)
# do that efficiently), and thus not recommended.
# - Creating a unique index on the field, by using
# ActiveRecord::ConnectionAdapters::SchemaStatements#add_index. In the
- # rare case that a racing condition occurs, the database will guarantee
+ # rare case that a race condition occurs, the database will guarantee
# the field's uniqueness.
#
# When the database catches such a duplicate insertion,

0 comments on commit 63c7dcf

Please sign in to comment.
Something went wrong with that request. Please try again.