Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
stringify default paths
  • Loading branch information
kraih committed Nov 12, 2017
1 parent db02801 commit 4eeb062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -157,8 +157,8 @@ sub new {
my $self = shift->SUPER::new(@_);

my $home = $self->home;
push @{$self->renderer->paths}, $home->child('templates');
push @{$self->static->paths}, $home->child('public');
push @{$self->renderer->paths}, $home->child('templates')->to_string;
push @{$self->static->paths}, $home->child('public')->to_string;

# Default to controller and application namespace
my $r = $self->routes->namespaces(["@{[ref $self]}::Controller", ref $self]);
Expand Down

0 comments on commit 4eeb062

Please sign in to comment.