Skip to content

Commit

Permalink
100 items per page
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed Sep 19, 2015
1 parent f86dabf commit a3fb4bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/posts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def show
# GET /posts
# GET /posts.json
def index
@posts = Post.all.includes(:reasons).includes(:feedbacks).paginate(:page => params[:page], :per_page => 50).order('created_at DESC')
@posts = Post.all.includes(:reasons).includes(:feedbacks).paginate(:page => params[:page], :per_page => 100).order('created_at DESC')
@sites = Site.where(:id => @posts.map(&:site_id))
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/reasons_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ReasonsController < ApplicationController
def show
@reason = Reason.find(params[:id])
@posts = @reason.posts.includes(:reasons).includes(:feedbacks).paginate(:page => params[:page], :per_page => 10).order('created_at DESC')
@posts = @reason.posts.includes(:reasons).includes(:feedbacks).paginate(:page => params[:page], :per_page => 100).order('created_at DESC')
@sites = Site.where(:id => @posts.map(&:site_id))
end
end

0 comments on commit a3fb4bb

Please sign in to comment.