diff options
Diffstat (limited to 'lib/presque')
-rw-r--r-- | lib/presque/worker/Role/Context.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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; |