diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-03-05 19:15:30 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-03-05 19:15:30 +0000 |
commit | 4949e0ee7a1162bca838822095e6cd2da527e2d2 (patch) | |
tree | 6ca87a2bb118f1abd37ffd04e91f058c9ec1e3b8 /lib/Reaction/UI/ViewPort/Field | |
parent | 335754e0e6a978284ab11afcc9c3d9da237df52c (diff) | |
download | reaction-4949e0ee7a1162bca838822095e6cd2da527e2d2.tar.gz reaction-4949e0ee7a1162bca838822095e6cd2da527e2d2.zip |
rewrite IM predicates
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm index 0d39eec..010ea07 100644 --- a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm +++ b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm @@ -66,10 +66,10 @@ role Mutable, which { confess "No writer for attribute" unless defined($writer); $self->model->$writer($value); } else { - my $predicate = $attr->predicate; + my $predicate = $attr->get_predicate_method; confess "No predicate for attribute" unless defined($predicate); if ($self->model->$predicate) { - my $clearer = $attr->clearer; + my $clearer = $attr->get_clearer_method; confess "${predicate} returned true but no clearer for attribute" unless defined($clearer); $self->model->$clearer; |