small adjustments
This commit is contained in:
parent
b6058e8b11
commit
fdb72a6d7f
3 changed files with 4 additions and 3 deletions
|
|
@ -22,7 +22,6 @@ use WebGUI::Definition::Meta::Asset;
|
||||||
use namespace::autoclean;
|
use namespace::autoclean;
|
||||||
no warnings qw(uninitialized);
|
no warnings qw(uninitialized);
|
||||||
|
|
||||||
|
|
||||||
our $VERSION = '0.0.1';
|
our $VERSION = '0.0.1';
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
@ -84,7 +83,7 @@ meta class into the options for each property.
|
||||||
|
|
||||||
sub property {
|
sub property {
|
||||||
my ($meta, $name, %options) = @_;
|
my ($meta, $name, %options) = @_;
|
||||||
$options{table} = $meta->table;
|
$options{table} //= $meta->table;
|
||||||
return WebGUI::Definition::property($meta, $name, %options);
|
return WebGUI::Definition::property($meta, $name, %options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ sub set {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $properties = shift;
|
my $properties = shift;
|
||||||
for my $key ( keys %$properties ) {
|
for my $key ( keys %$properties ) {
|
||||||
|
return undef
|
||||||
|
unless $self->can($key);
|
||||||
$self->$key($properties->{$key});
|
$self->$key($properties->{$key});
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue