about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-13 07:55:11 +0000
committerEric Wong <normalperson@yhbt.net>2011-04-13 07:55:11 +0000
commit1355d262288352c2ced67cefc2301cee79bec0dd (patch)
treede274bc392a26ad73365d6781d6152eb3c15f100
parent30ece1c7cc66b2fc816b1361e498ca0d4a554a78 (diff)
downloadunicorn-1355d262288352c2ced67cefc2301cee79bec0dd.tar.gz
Oops, changing a method definition for RDoc means code
needs to be updated, too :x
-rw-r--r--lib/unicorn/configurator.rb4
1 files changed, 2 insertions, 2 deletions
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