From 1355d262288352c2ced67cefc2301cee79bec0dd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 13 Apr 2011 07:55:11 +0000 Subject: configurator: fix broken local variable Oops, changing a method definition for RDoc means code needs to be updated, too :x --- lib/unicorn/configurator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/unicorn/configurator.rb') diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index 2a235d9..595d105 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -116,8 +116,8 @@ class Unicorn::Configurator # to /dev/null. def logger(obj) %w(debug info warn error fatal).each do |m| - new.respond_to?(m) and next - raise ArgumentError, "logger=#{new} does not respond to method=#{m}" + obj.respond_to?(m) and next + raise ArgumentError, "logger=#{obj} does not respond to method=#{m}" end set[:logger] = obj -- cgit v1.2.3-24-ge0c7