Commit ad95638f33ba3359a3c408c82e64553b17120e2d
1 parent
f847dae1
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix 3 comments limit
Showing
1 changed file
with
2 additions
and
7 deletions
Show diff stats
plugins/comment_paragraph/controllers/profile/comment_paragraph_plugin_profile_controller.rb
| ... | ... | @@ -10,12 +10,7 @@ class CommentParagraphPluginProfileController < ProfileController |
| 10 | 10 | |
| 11 | 11 | @comments = article.comments.without_spam.in_paragraph(@paragraph_id) |
| 12 | 12 | @comments_count = @comments.count |
| 13 | - @comments = @comments.without_reply.paginate(:per_page => per_page, :page => @paragraph_comment_page ) | |
| 14 | - @no_more_pages = @comments_count <= @paragraph_comment_page * per_page | |
| 13 | + @comments = @comments.without_reply | |
| 15 | 14 | end |
| 16 | 15 | |
| 17 | - def per_page | |
| 18 | - 3 | |
| 19 | - end | |
| 20 | - | |
| 21 | -end | |
| 16 | +end | |
| 22 | 17 | \ No newline at end of file | ... | ... |