[guide] Enable syntax highlight for a code in AR validation guide

This commit is contained in:
Masataka Pocke Kuwabara 2022-04-18 23:28:03 +09:00
parent c9e5057de4
commit c280c5d4d9
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ Note that an object instantiated with `new` will not report errors
even if it's technically invalid, because validations are automatically run
only when the object is saved, such as with the `create` or `save` methods.
```
```ruby
class Person < ApplicationRecord
validates :name, presence: true
end