From c280c5d4d95311c8f50a3a26091db5d70118f56b Mon Sep 17 00:00:00 2001 From: Masataka Pocke Kuwabara Date: Mon, 18 Apr 2022 23:28:03 +0900 Subject: [PATCH] [guide] Enable syntax highlight for a code in AR validation guide --- guides/source/active_record_validations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/active_record_validations.md b/guides/source/active_record_validations.md index b4dc1bb7d0..1bd429fb44 100644 --- a/guides/source/active_record_validations.md +++ b/guides/source/active_record_validations.md @@ -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