sub can_sync_to_action {
my $self = shift;
- return 1 unless $self->needs_sync;
+ return unless $self->needs_sync;
my $attr = $self->attribute;
if ($self->has_value) {
}
}
} else {
- return if $attr->is_required;
+ return if $self->model->attribute_is_required($attr);
}
return 1;
};