mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[guide] Enable syntax highlight for a code in AR validation guide
This commit is contained in:
parent
c9e5057de4
commit
c280c5d4d9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue