X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FController.pm;h=972b6a3020b33a7f4819395fa26ac3b1b0d75d70;hp=3c313c7917a77ce2aac0b73395dc3854b29eaee2;hb=8f6cebb2303a0b0eda9422430f926c3f83c72aed;hpb=2bf074abee817f84daec2a06822f9dcdb881843f diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index 3c313c7..972b6a3 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -158,7 +158,7 @@ around action_namespace => sub { } } - my $namespace = Catalyst::Utils::class2prefix($self->_component_name, $case_s) || ''; + my $namespace = Catalyst::Utils::class2prefix($self->catalyst_component_name, $case_s) || ''; $self->$orig($namespace) if ref($self); return $namespace; }; @@ -209,7 +209,7 @@ sub register_actions { sub register_action_methods { my ( $self, $c, @methods ) = @_; - my $class = $self->_component_name; + my $class = $self->catalyst_component_name; #this is still not correct for some reason. my $namespace = $self->action_namespace($c);