diff options
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field/Role/Mutable.pm')
-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 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->(@_)) }; |