my ($self) = @_;
my $reader = $self->attribute->get_read_method;
my $predicate = $self->attribute->predicate;
- #this is bound to blow the fuck if !model->$predicate what to do?
- return $self->model->$reader ; #if (!$predicate || $self->model->$predicate);
- print STDERR "weird!\n";
- return;
+ if (!$predicate || $self->model->$predicate
+ || $self->attribute->is_lazy_build) {
+ return $self->model->$reader;
+ }
+ return $self->_empty_value;
};
+ implements _empty_value => as { '' };
+
};
1;