Use Rails.root

A little cleanup.
This commit is contained in:
Jacques Distler 2009-11-22 01:32:58 -06:00
parent 045dcbf1f5
commit 79c8572053
6 changed files with 12 additions and 12 deletions

View file

@ -8,7 +8,7 @@ config.cache_classes = true
####
# This rotates the log file, keeping 25 files, of 1MB each.
config.action_controller.logger = Logger.new("#{RAILS_ROOT}/log/#{RAILS_ENV}.log", 25, 1024000)
config.action_controller.logger = Logger.new(Rails.root.join('log', "#{RAILS_ENV}.log"), 25, 1024000)
# Unfortunately, the above does not work well under Mongrel, as the default Ruby logger class
# does no locking and you will have several processes running, each wanting to write to (and