added alias and implication importer

This commit is contained in:
albert
2011-12-20 11:46:07 -05:00
parent 065ac3aefc
commit bae1f39dcf
6 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
module Admin
class AliasAndImplicationImportsController < ApplicationController
before_filter :admin_only
def new
end
def create
@importer = AliasAndImplicationImporter.new(params[:batch][:text], params[:batch][:forum_id])
@importer.process!
flash[:notice] = "Import queued"
redirect_to new_admin_alias_and_implication_import_path
rescue => x
flash[:notice] = x.to_s
redirect_to new_admin_alias_and_implication_import_path
end
end
end