Commit 9e3b375b138386857919d66852cc63639dae783e

Authored by Evandro Jr
1 parent e5f7efe2
Exists in master

Fix 3 comments limit

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
... ...