mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Modify minimum comment body length
This commit is contained in:
@@ -4,5 +4,5 @@ class Comment < ApplicationRecord
|
||||
belongs_to :parent, class_name: 'Comment', optional: true
|
||||
has_many :children, class_name: 'Comment', foreign_key: 'parent_id', dependent: :destroy
|
||||
|
||||
validates :body, presence: true, length: { minimum: 4 }
|
||||
validates :body, presence: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user