Skip to content

Commit 92a5a96

Browse files
Merge pull request rails#50088 from conradbeach/improve-find-or-create-by-docs
Fix small typographical errors in `#find_or_create_by` docs [ci-skip]
2 parents e5d3d78 + 43ff986 commit 92a5a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/relation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def first_or_initialize(attributes = nil, &block) # :nodoc:
164164
#
165165
# If creation failed because of a unique constraint, this method will
166166
# assume it encountered a race condition and will try finding the record
167-
# once more If somehow the second find still find no record because a
168-
# concurrent DELETE happened, it will then raise an
167+
# once more. If somehow the second find still does not find a record
168+
# because a concurrent DELETE happened, it will then raise an
169169
# ActiveRecord::RecordNotFound exception.
170170
#
171171
# Please note <b>this method is not atomic</b>, it runs first a SELECT,

0 commit comments

Comments
 (0)