From d13218b10cc75291591e04b7d69fc30ca2dc61a7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 18 Feb 2011 13:09:29 -0600 Subject: use new attribute trait --- lib/Narwhal.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/Narwhal.pm b/lib/Narwhal.pm index 612c2b9..de2a00a 100644 --- a/lib/Narwhal.pm +++ b/lib/Narwhal.pm @@ -3,16 +3,13 @@ use OX; with 'OX::Role::WithAppRoot'; -has dsn => ( +has kioku_dsn => ( + traits => ['OX::Config'], is => 'ro', isa => 'Str', default => 'dbi:SQLite:narwhal.db', ); -config kioku_dsn => sub { - my ($s, $app) = @_; - $app->dsn; -}; config kioku_extra_args => sub { { create => 1 } }; config template_root => sub { shift->param('app_root')->subdir('root', 'templates') -- cgit v1.2.3-54-g00ecf