Skip to content

Commit

Permalink
removed unused resource argument from render_not_found
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 13, 2012
1 parent c6e23d7 commit 675380f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -309,8 +309,7 @@ sub render_later { shift->stash->{'mojo.rendered'}++ }
# "Excuse me, sir, you're snowboarding off the trail.
# Lick my frozen metal ass."
sub render_not_found {
my ($self, $resource) = @_;
$self->app->log->debug(qq/Resource "$resource" not found./) if $resource;
my $self = shift;

# Recursion
my $stash = $self->stash;
Expand Down Expand Up @@ -804,7 +803,6 @@ useful.
=head2 C<render_not_found>
$c->render_not_found;
$c->render_not_found('some_resource');
Render the not found template C<not_found.$mode.$format.*> or
C<not_found.$format.*> and set the response status code to C<404>.
Expand Down

0 comments on commit 675380f

Please sign in to comment.