Class: Tasks::Projects::DataController

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

Instance Method Summary collapse

Methods included from TaskControllerConfiguration

#set_is_task_controller

Instance Method Details

#indexObject

GET task/projects/data



5
6
7
# File 'app/controllers/tasks/projects/data_controller.rb', line 5

def index
  @project = Project.find(sessions_current_project_id)
end

#sql_downloadObject



9
10
11
12
# File 'app/controllers/tasks/projects/data_controller.rb', line 9

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

#tsv_downloadObject



14
15
16
17
# File 'app/controllers/tasks/projects/data_controller.rb', line 14

def tsv_download
  download = ::Export::ProjectData::Tsv.download_async(sessions_current_project)
  redirect_to file_download_path(download)
end