From 66301471a58754f02e2e7766010008bf59357eb6 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Mon, 30 Sep 2019 17:35:06 +0500 Subject: [PATCH] Improve validations --- app/models/person_comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/person_comment.rb b/app/models/person_comment.rb index a2cf8ea..dc1d232 100644 --- a/app/models/person_comment.rb +++ b/app/models/person_comment.rb @@ -17,5 +17,5 @@ class PersonComment < ApplicationRecord # Validations # ############### - validates :text, presence: true, length: { in: 1..10_000 } + validates :text, good_big_text: true end