Use Rails.root.join where appropriate
This commit is contained in:
parent
82c3f62603
commit
afc4a75499
11 changed files with 17 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
module Gitlab
|
||||
class Satellite
|
||||
|
||||
|
||||
PARKING_BRANCH = "__parking_branch"
|
||||
|
||||
attr_accessor :project
|
||||
|
@ -14,7 +14,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
def path
|
||||
File.join(Rails.root, "tmp", "repo_satellites", project.path)
|
||||
Rails.root.join("tmp", "repo_satellites", project.path)
|
||||
end
|
||||
|
||||
def exists?
|
||||
|
@ -36,6 +36,6 @@ module Gitlab
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue