limit results in people#show to 15 posts
This commit is contained in:
parent
6b12c55278
commit
75f08f8cb9
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class PeopleController < ApplicationController
|
||||||
@commenting_disabled = false
|
@commenting_disabled = false
|
||||||
end
|
end
|
||||||
|
|
||||||
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").paginate :page => params[:page]
|
@posts = current_user.posts_from(@person).where(:type => "StatusMessage").paginate :per_page => 15, :page => params[:page]
|
||||||
@fakes = PostsFake.new(@posts)
|
@fakes = PostsFake.new(@posts)
|
||||||
|
|
||||||
respond_with @person, :locals => {:post_type => :all}
|
respond_with @person, :locals => {:post_type => :all}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue