Post.fast_count: remove uses of unused statement_timeout param (#3206).

Not used since 81684e6.
This commit is contained in:
evazion
2017-07-14 17:32:20 -05:00
parent ee6581ab7f
commit 45676491ff
2 changed files with 1 additions and 2 deletions

View File

@@ -2,6 +2,6 @@ class CountsController < ApplicationController
respond_to :xml, :json
def posts
@count = Post.fast_count(params[:tags], :statement_timeout => CurrentUser.user.statement_timeout)
@count = Post.fast_count(params[:tags])
end
end

View File

@@ -80,7 +80,6 @@ class PostsController < ApplicationController
end
def random
count = Post.fast_count(params[:tags], :statement_timeout => CurrentUser.user.statement_timeout)
@post = Post.tag_match(params[:tags]).random
raise ActiveRecord::RecordNotFound if @post.nil?
respond_with(@post) do |format|