From 9e3b375b138386857919d66852cc63639dae783e Mon Sep 17 00:00:00 2001 From: Evandro Jr Date: Tue, 2 Sep 2014 18:00:37 -0300 Subject: [PATCH] Fix 3 comments limit --- controllers/profile/comment_paragraph_plugin_profile_controller.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/controllers/profile/comment_paragraph_plugin_profile_controller.rb b/controllers/profile/comment_paragraph_plugin_profile_controller.rb index 89f1090..e4fb02a 100644 --- a/controllers/profile/comment_paragraph_plugin_profile_controller.rb +++ b/controllers/profile/comment_paragraph_plugin_profile_controller.rb @@ -10,12 +10,7 @@ class CommentParagraphPluginProfileController < ProfileController @comments = article.comments.without_spam.in_paragraph(@paragraph_id) @comments_count = @comments.count - @comments = @comments.without_reply.paginate(:per_page => per_page, :page => @paragraph_comment_page ) - @no_more_pages = @comments_count <= @paragraph_comment_page * per_page + @comments = @comments.without_reply end - def per_page - 3 - end - -end +end \ No newline at end of file -- libgit2 0.21.2