Files
danbooru/app/controllers/post_versions_controller.rb
2013-02-19 14:36:31 -05:00

13 lines
312 B
Ruby

class PostVersionsController < ApplicationController
respond_to :html, :xml, :json
def index
@search = PostVersion.search(params[:search])
@post_versions = @search.order("updated_at desc").paginate(params[:page], :count => 1_000_000)
respond_with(@post_versions)
end
def search
end
end