Fix $self vs $class, davewood++
Tomas Doran [Thu, 10 Jun 2010 09:54:11 +0000 (09:54 +0000)]
lib/Catalyst/Component.pm

index 1b2d462..2fd7181 100644 (file)
@@ -185,7 +185,7 @@ something like this:
 
   sub COMPONENT {
       my ($class, $app, $args) = @_;
-      $args = $self->merge_config_hashes($self->config, $args);
+      $args = $class->merge_config_hashes($class->config, $args);
       return $class->new($app, $args);
   }