projects
/
catagits/Catalyst-Model-DBIC-Schema.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
ignore %$self keys that are not schema methods
[catagits/Catalyst-Model-DBIC-Schema.git]
/
lib
/
Catalyst
/
Model
/
DBIC
/
Schema.pm
diff --git
a/lib/Catalyst/Model/DBIC/Schema.pm
b/lib/Catalyst/Model/DBIC/Schema.pm
index
993c02c
..
982b3e3
100644
(file)
--- a/
lib/Catalyst/Model/DBIC/Schema.pm
+++ b/
lib/Catalyst/Model/DBIC/Schema.pm
@@
-627,8
+627,7
@@
sub _pass_options_to_schema {
for my $opt (keys %$self) {
if (not exists $attributes{$opt}) {
- die "Invalid schema option: $opt" unless $self->schema->can($opt);
-
+ next unless $self->schema->can($opt);
$self->schema->$opt($self->{$opt});
}
}