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
2e97db88
Commit
2e97db88
authored
Jun 08, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the uploader use the updated folder
parent
565ead61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/uploaders/gitlab_uploader.rb
app/uploaders/gitlab_uploader.rb
+3
-1
No files found.
app/uploaders/gitlab_uploader.rb
View file @
2e97db88
...
...
@@ -15,10 +15,12 @@ class GitlabUploader < CarrierWave::Uploader::Base
# This method is overridden in the `FileUploader`
def
self
.
base_dir
return
root_dir
unless
file_storage?
File
.
join
(
root_dir
,
'system'
)
end
def
self
.
file_storage?
self
.
storage
.
is_a?
(
CarrierWave
::
Storage
::
File
)
self
.
storage
==
CarrierWave
::
Storage
::
File
end
delegate
:base_dir
,
:file_storage?
,
to: :class
...
...
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