diff options
author | franck cuny <franck@lumberjaph.net> | 2010-06-28 09:53:30 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-06-28 09:53:30 +0200 |
commit | f331d35e07cd985395eb132314b6726edbaa1c16 (patch) | |
tree | 7e46c571e27094ca8b57f394e7b4ac3d45b005d7 /lib/presque/worker | |
parent | rename (diff) | |
download | presque-worker-f331d35e07cd985395eb132314b6726edbaa1c16.tar.gz |
default is a sub, loadfile instead of load
Diffstat (limited to 'lib/presque/worker')
-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; |