just realized that the change to AspectsController#index in the previous commit isn't needed
This commit is contained in:
parent
3af5e24ac6
commit
e2f6427724
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class AspectsController < ApplicationController
|
|||
@aspect_ids = @aspects.map{|a| a.id}
|
||||
|
||||
@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')
|
||||
@fakes = PostsFake.new(@posts)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue