1. Fabrice Gabolde
  2. Floop

Commits

Fabrice Gabolde  committed 100660e

Fixed static_files_directory attribute failing to build default value for empty configurations.

  • Participants
  • Parent commits f3695e7
  • Branches default

Comments (0)

Files changed (1)

File lib/Floop.pm

View file
  • Ignore whitespace
     has $!configuration is ro = Floop::Configuration->new;
     has $!logger is ro = Floop::Logger::Console->new;
     has $!work_directory is ro = dir('.');
-    has $!static_files_directory is ro, lazy = dir($_->configuration->get('static'));
+    has $!static_files_directory is ro, lazy = dir($_->configuration->get_with_default('static', 'static'));
     has $!hooks is ro = {};
     has $!registered_plugins is ro = [];
     has $!mime_table is ro = MIME::Types->new(only_complete => 1);