Skip to content

Commit

Permalink
[ci skip] Correct the explanation of the example for find_or_create_b…
Browse files Browse the repository at this point in the history
…y when used with create_with in ActiveRecord Querying guide
  • Loading branch information
speakingcode committed Sep 25, 2013
1 parent f398285 commit 8e41663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_querying.md
Expand Up @@ -1358,7 +1358,7 @@ COMMIT

The new record might not be saved to the database; that depends on whether validations passed or not (just like `create`).

Suppose we want to set the 'locked' attribute to true if we're
Suppose we want to set the 'locked' attribute to false if we're
creating a new record, but we don't want to include it in the query. So
we want to find the client named "Andy", or if that client doesn't
exist, create a client named "Andy" which is not locked.
Expand Down

0 comments on commit 8e41663

Please sign in to comment.