app/controllers/spud/admin/posts_controller.rb in spud_blog-0.9.9 vs app/controllers/spud/admin/posts_controller.rb in spud_blog-0.9.10
- old
+ new
@@ -6,10 +6,10 @@
add_breadcrumb 'Blog Posts', :spud_admin_posts_path
belongs_to_spud_app :blog_posts
cache_sweeper :spud_post_sweeper, :only => [:create, :update, :destroy]
def index
- @posts = SpudPost.where(:is_news => false).order('published_at desc').includes(:comments, :author).paginate(:page => params[:page], :per_page => 15)
+ @posts = SpudPost.where(:is_news => false).order('published_at desc').includes(:visible_comments, :spam_comments, :author).paginate(:page => params[:page], :per_page => 15)
respond_with @posts
end
def edit
@categories = SpudPostCategory.grouped