Skip to content

Commit

Permalink
changed default name for generated applications from MyMojoliciousApp…
Browse files Browse the repository at this point in the history
… to MyApp
  • Loading branch information
kraih committed Oct 8, 2013
1 parent 170a0ce commit 1964fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
@@ -1,5 +1,7 @@

4.46 2013-10-08
- Changed default name for generated applications from MyMojoliciousApp to
MyApp.

4.45 2013-10-06
- Changed return values of validation checks in Mojolicious::Validator.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -8,7 +8,7 @@ has usage => "usage: $0 generate app [NAME]\n";

sub run {
my ($self, $class) = @_;
$class ||= 'MyMojoliciousApp';
$class ||= 'MyApp';

# Prevent bad applications
die <<EOF unless $class =~ /^[A-Z](?:\w|::)+$/;
Expand Down

0 comments on commit 1964fc1

Please sign in to comment.