Use Rails.root.join where appropriate

This commit is contained in:
Robert Speicher 2012-09-26 14:52:01 -04:00
parent 82c3f62603
commit afc4a75499
11 changed files with 17 additions and 17 deletions

View file

@ -112,7 +112,7 @@ class Settings < Settingslogic
def backup_path
t = app['backup_path'] || "backups/"
t = /^\//.match(t) ? t : File.join(Rails.root + t)
t = /^\//.match(t) ? t : Rails.root .join(t)
t
end