From 684a9d6083a7f95a3010e7a1291df7ab6de0f394 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 6 Jan 2010 17:27:04 -0800 Subject: README: use ::File in usage examples A bare "File" constant may conflict with Rack::File when run inside Rack::Builder --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README') 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 -- cgit v1.2.3-24-ge0c7