diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 22:52:01 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-27 00:32:26 +0400 |
commit | afc4a75499b6678a643e6b62f703f8e7e1eb0f0a (patch) | |
tree | 19855be537491fb2e1f79907e034f8f199915f46 /app/roles | |
parent | 82c3f6260366147803d5f63d575231f77c7e73ce (diff) |
Use Rails.root.join where appropriate
Diffstat (limited to 'app/roles')
-rw-r--r-- | app/roles/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/roles/repository.rb b/app/roles/repository.rb index 1f44481e4f3..35093a2fc75 100644 --- a/app/roles/repository.rb +++ b/app/roles/repository.rb @@ -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 |