Skip to content

Commit

Permalink
Make our own app root since it's no longer provided
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmay committed Feb 23, 2012
1 parent dfec92f commit fbb46d0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/App/Termcast/Server/Web.pm
Expand Up @@ -11,7 +11,15 @@ use YAML;
use Path::Class 'dir';
use MooseX::Types::Path::Class;

with 'OX::Role::WithAppRoot';
use Path::Class::File;

has app_root => (
is => 'ro',
isa => 'Path::Class::Dir',
lifecycle => 'Singleton',
coerce => 1,
block => sub { Path::Class::File->new(__FILE__)->parent->parent->parent->parent->parent },
);

has tt_root => (
is => 'ro',
Expand Down

0 comments on commit fbb46d0

Please sign in to comment.