aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/rack
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-11-25 23:25:32 -0200
committerJosé Valim <jose.valim@gmail.com>2009-11-25 23:25:32 -0200
commitfc3629f6ca2b43693f5447a1fb43881f1814e117 (patch)
tree724226a073a5f454fc8c2d28ff8bc85bd031fa40 /railties/lib/rails/rack
parent41e607dee20b15d8dc71dc16a08d4bbe9e36ac70 (diff)
parent02c3c9dfbcec05e3b0cecc062da8acd0cf7c53e0 (diff)
downloadrails-fc3629f6ca2b43693f5447a1fb43881f1814e117.tar.gz
rails-fc3629f6ca2b43693f5447a1fb43881f1814e117.tar.bz2
rails-fc3629f6ca2b43693f5447a1fb43881f1814e117.zip
Merge branch 'master' of git://github.com/rails/rails
Diffstat (limited to 'railties/lib/rails/rack')
-rw-r--r--railties/lib/rails/rack/log_tailer.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/rails/rack/log_tailer.rb b/railties/lib/rails/rack/log_tailer.rb
index a237cee6bc..077311be3c 100644
--- a/railties/lib/rails/rack/log_tailer.rb
+++ b/railties/lib/rails/rack/log_tailer.rb
@@ -1,12 +1,10 @@
module Rails
module Rack
class LogTailer
- EnvironmentLog = "#{File.expand_path(Rails.root)}/log/#{Rails.env}.log"
-
def initialize(app, log = nil)
@app = app
- path = Pathname.new(log || EnvironmentLog).cleanpath
+ path = Pathname.new(log || "#{File.expand_path(Rails.root)}/log/#{Rails.env}.log").cleanpath
@cursor = ::File.size(path)
@last_checked = Time.now.to_f