From f331d35e07cd985395eb132314b6726edbaa1c16 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 28 Jun 2010 09:53:30 +0200 Subject: default is a sub, loadfile instead of load --- lib/presque/worker/Role/Context.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/presque/worker/Role/Context.pm') diff --git a/lib/presque/worker/Role/Context.pm b/lib/presque/worker/Role/Context.pm index 5eccf7b..ec252c1 100644 --- a/lib/presque/worker/Role/Context.pm +++ b/lib/presque/worker/Role/Context.pm @@ -7,14 +7,14 @@ use Moose::Util::TypeConstraints; subtype 'Context' => as 'HashRef'; -coerce 'Context' => from 'Str' => via { Load $_; }; +coerce 'Context' => from 'Str' => via { YAML::LoadFile $_; }; has context => ( is => 'rw', isa => 'Context', lazy => 1, coerce => 1, - default => {{}}, + default => sub {{}}, ); 1; -- cgit 1.4.1