Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bd2ebf37
Commit
bd2ebf37
authored
May 04, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use worker in controller
parent
17cfce7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+6
-3
No files found.
app/controllers/projects_controller.rb
View file @
bd2ebf37
...
...
@@ -191,8 +191,7 @@ class ProjectsController < Projects::ApplicationController
end
def
export
#TODO: Move to worker
::
Projects
::
ImportExport
::
ExportService
.
new
(
@project
,
current_user
).
execute
@project
.
add_export_job
(
current_user_id:
current_user
.
id
)
redirect_to
(
edit_project_path
(
@project
),
...
...
@@ -201,7 +200,11 @@ class ProjectsController < Projects::ApplicationController
end
def
download_export
send_file
export_project_path
,
disposition:
'attachment'
if
export_project_path
send_file
export_project_path
,
disposition:
'attachment'
else
render_404
end
end
def
toggle_star
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment