Changes done as per feedback

This commit is contained in:
Stefan Morgenthaler 2012-07-10 16:12:19 +02:00
parent 12b34c8115
commit 4dae41d5dc
3 changed files with 26 additions and 23 deletions

View file

@ -101,5 +101,15 @@ class Settings < Settingslogic
def default_projects_limit
app['default_projects_limit'] || 10
end
def backup_path
t = app['backup_path'] || "backups/"
t = /^\//.match(t) ? t : File.join(Rails.root + t)
t
end
def backup_keep_time
app['backup_keep_time'] || 0
end
end
end