Commit fcfdd94f authored by evazion's avatar evazion

controllers: temp fix exception in show actions.

Temp fix a regression caused by c7185724.
parent 6a729cf1
......@@ -18,7 +18,7 @@ module Moderator
@posts = ::Post.includes(:disapprovals, :uploader).order("posts.id asc").pending_or_flagged.available_for_moderation(search_params[:hidden]).tag_match(search_params[:tags]).paginate(params[:page], :limit => per_page)
@posts.each # hack to force rails to eager load
end
respond_with(@posts)
#respond_with(@posts)
end
def random
......
......@@ -6,6 +6,6 @@ class RelatedTagsController < ApplicationController
category = params[:category] || search_params[:category]
@query = RelatedTagQuery.new(query: query, category: category, user: CurrentUser.user)
respond_with(@query)
#respond_with(@query)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment