aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-01-02 22:57:32 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-01-02 22:57:32 +0000
commit36d54b146cfba17f5c7757eced453429ee31c780 (patch)
treeb6b64cdf2c279bc7337c3dad7043f43e57e64de2 /lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
parentc03f75a7322e8194591d2f8bd02fb3f83df8833f (diff)
downloadreaction-36d54b146cfba17f5c7757eced453429ee31c780.tar.gz
reaction-36d54b146cfba17f5c7757eced453429ee31c780.zip
choosemany is still broken (not applying changes) but everything else is looking better
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm')
-rw-r--r--lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm4
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 db6c4f3..66a46cf 100644
--- a/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
+++ b/lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm
@@ -33,14 +33,14 @@ role Mutable, which {
}
my $writer = $attr->get_write_method;
confess "No writer for attribute" unless defined($writer);
- $self->action->$writer($self->value); #should we be passing $value ?
+ $self->model->$writer($self->value); #should we be passing $value ?
$self->needs_sync(0);
};
implements sync_from_action => as {
my ($self) = @_;
return unless !$self->needs_sync; # && $self->has_attribute;
- $self->message($self->action->error_for($self->attribute) || '');
+ $self->message($self->model->error_for($self->attribute) || '');
};
around accept_events => sub { ('value', shift->(@_)) };