This commit is contained in:
Toks
2013-06-30 11:57:30 -04:00
parent 51a7e36509
commit 2016e15ce8
9 changed files with 6 additions and 15 deletions

View File

@@ -1,7 +1,6 @@
class CommentsController < ApplicationController
respond_to :html, :xml, :json
before_filter :member_only, :only => [:update, :create, :edit, :destroy]
rescue_from User::PrivilegeError, :with => "static/access_denied"
rescue_from ActiveRecord::StatementInvalid, :with => :search_error
def index
@@ -106,7 +105,6 @@ private
end
protected
def search_error(e)
if e.message =~ /syntax error in tsquery/
@error_message = "Meta-tags are not supported in comment searches by tag"