rails/rails — pull request #12355 by speakingcode (2013-09-25 15:50:08+00:00)
Title: Correct error in ActiveRecord Querying guide

In the section for using find_or_create_by, there are two examples which set additional attributes in a newly created record, which are not included in the query for an existing record. One example uses create_with and the other uses a block. In both examples, the 'locked' attribute of the newly-created record is set to false, but the explanation of the documentation stated 'Suppose we want to set the locked attribute to true', which is inconsistent with the examples. This change corrects the explanation to say 'false'.