Class: Tasks::Projects::DataController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Tasks::Projects::DataController
- Includes:
- TaskControllerConfiguration
- Defined in:
- app/controllers/tasks/projects/data_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET task/projects/data.
- #sql_download ⇒ Object
- #tsv_download ⇒ Object
Methods included from TaskControllerConfiguration
Instance Method Details
#index ⇒ Object
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_download ⇒ Object
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_download ⇒ Object
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 |