Class: Tasks::Exports::TaxonworksProjectController

Inherits:
ApplicationController
  • Object
show all
Includes:
TaskControllerConfiguration
Defined in:
app/controllers/tasks/exports/taxonworks_project_controller.rb

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#csv_downloadObject



12
13
14
15
# File 'app/controllers/tasks/exports/taxonworks_project_controller.rb', line 12

def csv_download
  download = ::Export::Project::CSV.download(sessions_current_project)
  redirect_to download_path(download)
end

#indexObject



4
5
# File 'app/controllers/tasks/exports/taxonworks_project_controller.rb', line 4

def index
end

#sql_downloadObject



7
8
9
10
# File 'app/controllers/tasks/exports/taxonworks_project_controller.rb', line 7

def sql_download
  download = ::Export::Project::Sql.download(sessions_current_project)
  redirect_to download_path(download)
end