X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=c25dde9923eac9ebc4c909a7da9e7c2b67eca88a;hb=f63cd9acb934199a634b3f2c2dac671d8e8c5b3a;hp=dc30f1ddd19afd6db433f553a1ffd9e36207dc0a;hpb=b2d40c03a584dac092c64ebc632397264fc57dc7;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index dc30f1d..c25dde9 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -136,9 +136,8 @@ sub mk_component { $type = 'C' if $type =~ /controller/i; my $appdir = File::Spec->catdir( split /\:\:/, $app ); my $test_path = - File::Spec->catdir( $FindBin::Bin, '..', 'lib', $appdir, - 'Controller' ); - $type = $self->{long_type} if -d $test_path; + File::Spec->catdir( $FindBin::Bin, '..', 'lib', $appdir, 'C' ); + $type = $self->{long_type} unless -d $test_path; $self->{type} = $type; $self->{name} = $name; $self->{class} = "$app\::$type\::$name"; @@ -559,7 +558,7 @@ it under the same terms as Perl itself. __makefile__ use inc::Module::Install; -name('[% name %]'); +name('[% dir %]'); abstract('Catalyst Application'); author('[% author %]'); version_from('[% path %]'); @@ -963,6 +962,8 @@ Catalyst [% long_type %]. [% IF long_type == 'Controller' %] =head1 METHODS +=cut + # # Uncomment and modify this or add new actions to fit your needs #