From c501707f8009aa6da28c34c66eb497f144bfb4af Mon Sep 17 00:00:00 2001 From: ilya Date: Tue, 17 Aug 2010 23:24:42 -0700 Subject: [PATCH] DG IZ posts_for to visible posts --- app/controllers/groups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index e7437c454..11ded0064 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -32,7 +32,7 @@ class GroupsController < ApplicationController @group = Group.first(:id => params[:id]) - @posts = current_user.posts_for( :group => @group ).paginate :order => 'created_at DESC' + @posts = current_user.visible_posts( :by_members_of => @group ).paginate :order => 'created_at DESC' #@posts = Post.paginate :person_id => @people_ids, :order => 'created_at DESC' end