Post.fast_count: remove uses of unused statement_timeout param (#3206).
Not used since 81684e6.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user