is_lazy implies builder or default but need to ensure \!lazy_fail (Field value buildi...
matthewt [Thu, 24 Jan 2008 09:55:31 +0000 (09:55 +0000)]
lib/Reaction/UI/ViewPort/Field.pm

index b6fdf25..007946b 100644 (file)
@@ -31,8 +31,7 @@ class Field is 'Reaction::UI::ViewPort', which {
 
     if (!$predicate || $self->model->$predicate
         || ($self->attribute->is_lazy
-            && ($self->attribute->builder
-                || $self->attribute->default))
+            && !$self->attribute->is_lazy_fail)
       ) {
       return $self->model->$reader;
     }