Remove comments pagination

This commit is contained in:
riggraz
2019-09-17 15:03:25 +02:00
parent b40ddfd543
commit 476f720119
8 changed files with 7 additions and 37 deletions

View File

@@ -5,6 +5,4 @@ class Comment < ApplicationRecord
has_many :children, class_name: 'Comment', foreign_key: 'parent_id', dependent: :destroy
validates :body, presence: true, length: { minimum: 4 }
paginates_per 15
end