implement post version search report in danbooru (probably broken)

This commit is contained in:
r888888888
2016-09-06 18:02:58 -07:00
parent 1488f82b32
commit 310538dd71
6 changed files with 53 additions and 49 deletions

View File

@@ -28,13 +28,6 @@ class ReportsController < ApplicationController
end
def post_versions_create
if params[:type] == "added"
@report = Reports::PostVersionsAdded.new(params[:tag], params[:email])
else
@report = Reports::PostVersionsRemoved.new(params[:tag], params[:email])
end
@report.process!
flash[:notice] = "Report is being generated and will be emailed to you shortly"
redirect_to reports_post_versions_path
@report = Reports::PostVersions.new(params[:tag], params[:type])
end
end