summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-02-18 13:09:29 -0600
committerJesse Luehrs <doy@tozt.net>2011-02-18 13:09:29 -0600
commitd13218b10cc75291591e04b7d69fc30ca2dc61a7 (patch)
tree4cf6a56eed0c3635c8b133584a41a0b6948eb1d3
parent18f07a26819d72517556849fc59c9860a90d3c9c (diff)
downloadnarwhal-d13218b10cc75291591e04b7d69fc30ca2dc61a7.tar.gz
narwhal-d13218b10cc75291591e04b7d69fc30ca2dc61a7.zip
use new attribute trait
-rw-r--r--lib/Narwhal.pm7
1 files 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')