Commit 9e3b375b138386857919d66852cc63639dae783e
1 parent
e5f7efe2
Exists in
master
Fix 3 comments limit
Showing
1 changed file
with
2 additions
and
7 deletions
Show diff stats
controllers/profile/comment_paragraph_plugin_profile_controller.rb
@@ -10,12 +10,7 @@ class CommentParagraphPluginProfileController < ProfileController | @@ -10,12 +10,7 @@ class CommentParagraphPluginProfileController < ProfileController | ||
10 | 10 | ||
11 | @comments = article.comments.without_spam.in_paragraph(@paragraph_id) | 11 | @comments = article.comments.without_spam.in_paragraph(@paragraph_id) |
12 | @comments_count = @comments.count | 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 | end | 14 | end |
16 | 15 | ||
17 | - def per_page | ||
18 | - 3 | ||
19 | - end | ||
20 | - | ||
21 | -end | 16 | +end |
22 | \ No newline at end of file | 17 | \ No newline at end of file |