fix tests

This commit is contained in:
albert
2013-03-11 18:12:27 -04:00
parent 1ae21d51bc
commit fe97436f81
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
class PostVersionsController < ApplicationController
respond_to :html, :xml, :json
rescue_from ActiveRecord::StatementInvalid, :with => :rescue_exception
def index
@post_versions = PostVersion.search(params[:search]).order("updated_at desc").paginate(params[:page], :search_count => params[:search])