projects
/
catagits/Catalyst-Model-DBIC-Schema.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
7bd33ab
)
ignore %$self keys that are not schema methods
Rafael Kitover [Mon, 24 Aug 2009 08:23:32 +0000 (08:23 +0000)]
lib/Catalyst/Model/DBIC/Schema.pm
patch
|
blob
|
blame
|
history
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});
}
}