# attributes => qr//, #DWIM, treated as [qr//]
# attributes => [{...}] #DWIM, treat as [qr/./, {...} ]
# attributes => [[-exclude => ...]] #DWIM, treat as [qr/./, [-exclude => ...]]
- my $attr_haystack = [ map { $_->name } $object->meta->parameter_attributes ];
+ my $attr_haystack = [ map { $_->name } $object->parameter_attributes ];
if(!defined $attr_rules){
$attr_rules = [qr/./];
} elsif( (!ref $attr_rules && $attr_rules) || (ref $attr_rules eq 'Regexp') ){
)
) }
grep { defined $_->get_read_method }
- $self->current_collection->member_type->meta->parameter_attributes;
+ $self->current_collection->member_type->parameter_attributes;
return $self->sort_by_spec($self->field_order, \@names);
};
my %excluded = map { $_ => undef } @{ $self->excluded_fields };
#treat _$field_name as private and exclude fields with no reader
my @names = grep { $_ !~ /^_/ && !exists($excluded{$_})} map { $_->name }
- grep { defined $_->get_read_method } $self->model->meta->parameter_attributes;
+ grep { defined $_->get_read_method } $self->model->parameter_attributes;
return $self->sort_by_spec($self->field_order || [], \@names);
};