added routes for old danbooru

This commit is contained in:
albert
2011-11-11 15:56:52 -05:00
parent 935e746815
commit 44cf126d0f
3 changed files with 61 additions and 7 deletions

View File

@@ -4,12 +4,12 @@ class CommentsController < ApplicationController
rescue_from User::PrivilegeError, :with => "static/access_denied"
def index
if params[:group_by] == "post"
index_by_post
if params[:group_by] == "comment"
index_by_comment
elsif request.format == Mime::JS
index_for_post
else
index_by_comment
index_by_post
end
end