summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')