Files
danbooru/app/controllers/post_versions_controller.rb
2013-03-19 23:10:10 +11:00

13 lines
374 B
Ruby

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])
respond_with(@post_versions)
end
def search
end
end