just realized that the change to AspectsController#index in the previous commit isn't needed

This commit is contained in:
MrZYX 2011-03-27 17:26:17 +02:00
parent 3af5e24ac6
commit e2f6427724

View file

@ -31,7 +31,7 @@ class AspectsController < ApplicationController
@aspect_ids = @aspects.map{|a| a.id} @aspect_ids = @aspects.map{|a| a.id}
@posts = StatusMessage.joins(:aspects).where(:pending => false, @posts = StatusMessage.joins(:aspects).where(:pending => false,
:aspects => {:id => @aspect_ids}).includes(:aspects, :post_visibilities, :comments, :photos, :likes, :dislikes).select('DISTINCT `posts`.*').paginate( :aspects => {:id => @aspect_ids}).includes(:comments, :photos, :likes, :dislikes).select('DISTINCT `posts`.*').paginate(
:page => params[:page], :per_page => 15, :order => sort_order + ' DESC') :page => params[:page], :per_page => 15, :order => sort_order + ' DESC')
@fakes = PostsFake.new(@posts) @fakes = PostsFake.new(@posts)