Skip to content
Extraits de code Groupes Projets
Valider 75f08f8c rédigé par maxwell's avatar maxwell
Parcourir les fichiers

limit results in people#show to 15 posts

parent 6b12c552
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -61,7 +61,7 @@ class PeopleController < ApplicationController ...@@ -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}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter