fix post versions controller

This commit is contained in:
albert
2013-01-14 12:08:57 -05:00
parent a9d986cb21
commit 5fcd802249

View File

@@ -1,7 +1,10 @@
class PostVersionsController < ApplicationController
respond_to :html, :xml, :json
def index
@search = PostVersion.search(params[:search])
@post_versions = @search.order("id desc").paginate(params[:page])
respond_with(@post_versions)
end
def search