diff options
author | Matthew Bergman <MZBPhoto@gmail.com> | 2008-09-22 06:55:12 -0400 |
---|---|---|
committer | Matthew Bergman <MZBPhoto@gmail.com> | 2008-09-22 06:55:12 -0400 |
commit | 46fac72e4e79f03641e049136e7d164ecbb6e710 (patch) | |
tree | e3ff899de1cd0fe9218d09e98446126d9e4a7353 /activerecord | |
parent | 13307e420f122af1bc09f28b320b943b0cd384a7 (diff) | |
parent | f6360ba196658f9d25ad03261b6b42582b5f4818 (diff) | |
download | rails-46fac72e4e79f03641e049136e7d164ecbb6e710.tar.gz rails-46fac72e4e79f03641e049136e7d164ecbb6e710.tar.bz2 rails-46fac72e4e79f03641e049136e7d164ecbb6e710.zip |
Merge branch 'master' of git@github.com:lifo/docrails
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 73d9b36fc2..8481706074 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -642,7 +642,7 @@ module ActiveRecord # # 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 @@ module ActiveRecord # 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, |