about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-01-06 17:27:04 -0800
committerEric Wong <normalperson@yhbt.net>2010-01-06 17:27:04 -0800
commit684a9d6083a7f95a3010e7a1291df7ab6de0f394 (patch)
tree7cc7881d44b1aebd821a3a64204f50a7d9e779f6
parentab37f2d65b01370ae975346110471f33b10bd178 (diff)
downloadclogger-684a9d6083a7f95a3010e7a1291df7ab6de0f394.tar.gz
A bare "File" constant may conflict with Rack::File
when run inside Rack::Builder
-rw-r--r--README4
1 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index 5688aa9..8e9bd66 100644
--- a/README
+++ b/README
@@ -31,7 +31,7 @@ Clogger may be loaded as Rack middleware in your config.ru:
   require "clogger"
   use Clogger,
       :format => Clogger::Format::Combined,
-      :logger => File.open("/path/to/log", "ab")
+      :logger => ::File.open("/path/to/log", "ab")
   run YourApplication.new
 
 If you're using Rails 2.3.x or later, in your config/environment.rb
@@ -39,7 +39,7 @@ somewhere inside the "Rails::Initializer.run do |config|" block:
 
   config.middleware.use 'Clogger',
       :format => Clogger::Format::Combined,
-      :logger => File.open("/path/to/log", "ab")
+      :logger => ::File.open("/path/to/log", "ab")
 
 == VARIABLES