Class: Tasks::Exports::NomenclatureController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#basicObject

GET



5
6
# File 'app/controllers/tasks/exports/nomenclature_controller.rb', line 5

def basic
end

#download_basicObject



8
9
10
11
12
13
# File 'app/controllers/tasks/exports/nomenclature_controller.rb', line 8

def download_basic
  redirect_to export_basic_nomenclature_task_path, notice: 'Nothing selected' and return unless !params[:taxon_name_id].blank?
  @taxon_name = TaxonName.where(project_id: sessions_current_project_id).find(params.require(:taxon_name_id))
  download = ::Export::BasicNomenclature.download_async(@taxon_name, request.url)
  redirect_to file_download_path(download)
end