Skip to content

Commit

Permalink
fixed small export bug in Mojolicious::Lite (closes #426)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 15, 2012
1 parent 9c668b5 commit b4a1007
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@
3.68 2012-12-16
- Updated jQuery to version 1.8.3.
- Improved documentation.
- Fixed small export bug in Mojolicious::Lite. (jberger)

3.67 2012-12-15
- Added support for MIME type prioritization to Mojolicious::Types.
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojolicious/Lite.pm
Expand Up @@ -34,7 +34,8 @@ sub import {
for my $name (qw(any get options patch post put websocket)) {
*{"${caller}::$name"} = sub { $routes->$name(@_) };
}
*{"${caller}::new"} = *{"${caller}::app"} = sub {$app};
*{"${caller}::$_"} = sub {$app}
for qw(new app);
*{"${caller}::del"} = sub { $routes->delete(@_) };
*{"${caller}::group"} = sub (&) {
my $old = $root;
Expand Down

1 comment on commit b4a1007

@memowe
Copy link
Contributor

@memowe memowe commented on b4a1007 Dec 15, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*excellent{CODE} = sub{'awesome'}; # KTHXBAI

Please sign in to comment.