Mark as code for association strategy

This is a very small documentation fix for clarity.
This commit is contained in:
Masafumi Koba 2019-05-31 14:28:37 +09:00 committed by Alejandro Dustet
parent f82e40c8c5
commit 41b8ea8cfd
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ post.new_record? # => true
post.author.new_record? # => false
```
To not save the associated object, specify strategy: :build in the factory:
To not save the associated object, specify `strategy: :build` in the factory:
```ruby
FactoryBot.use_parent_strategy = false