summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-28 09:53:30 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-28 09:53:30 +0200
commitf331d35e07cd985395eb132314b6726edbaa1c16 (patch)
tree7e46c571e27094ca8b57f394e7b4ac3d45b005d7
parentrename (diff)
downloadpresque-worker-f331d35e07cd985395eb132314b6726edbaa1c16.tar.gz
default is a sub, loadfile instead of load
-rw-r--r--lib/presque/worker/Role/Context.pm4
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;