Files
danbooru/app/controllers/post_versions_controller.rb
albert 3c0a05fc79 fix
2013-01-14 12:44:24 -05:00

14 lines
344 B
Ruby

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