package Reaction::UI::ViewPort::Field::Role::Choices;
-use Reaction::Class;
+use Reaction::Role;
use URI;
use Scalar::Util 'blessed';
my ($self, $str) = @_;
my $u = URI->new('','http');
$u->query($str);
- return { $u->query_form };
+ return ($u->query_keywords ? ($u->query_keywords)[0] : { $u->query_form });
};
implements obj_to_str => as {
implements _build_valid_values => as {
my $self = shift;
- return [ $self->attribute->all_valid_values($self->action) ];
+ return [ $self->attribute->all_valid_values($self->model) ];
};
implements _build_value_choices => sub{