Use Rails.root.join where appropriate
This commit is contained in:
parent
82c3f62603
commit
afc4a75499
11 changed files with 17 additions and 17 deletions
|
@ -155,7 +155,7 @@ module Repository
|
|||
|
||||
# Build file path
|
||||
file_name = self.code + "-" + commit.id.to_s + ".tar.gz"
|
||||
storage_path = File.join(Rails.root, "tmp", "repositories", self.code)
|
||||
storage_path = Rails.root.join("tmp", "repositories", self.code)
|
||||
file_path = File.join(storage_path, file_name)
|
||||
|
||||
# Put files into a directory before archiving
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue