diff options
author | James Lopez <james@jameslopez.es> | 2018-09-07 14:42:49 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-09-07 14:42:49 +0300 |
commit | 27442862cf81881c81552e64d0b4d3354535c45e (patch) | |
tree | a05e89cdad1f455971748b74f4092ca3992de8b8 /app/controllers/projects_controller.rb | |
parent | a2aa505805478540b3150b2f9093c8658e18597d (diff) |
refactor code based on feedback
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r-- | app/controllers/projects_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 646d8329aff..f4049bbfa46 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -191,8 +191,8 @@ class ProjectsController < Projects::ApplicationController end def download_export - if @project.export_project_object_exists? - send_upload(@project.import_export_upload.export_file) + if @project.export_project_exists? + send_upload(@project.export_file) else redirect_to( edit_project_path(@project, anchor: 'js-export-project'), |