From: Rafael Kitover Date: Mon, 24 Aug 2009 08:23:32 +0000 (+0000) Subject: ignore %$self keys that are not schema methods X-Git-Tag: v0.27~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Model-DBIC-Schema.git;a=commitdiff_plain;h=294245b0ccdd8cdebded241de2e8c8d2dc9454e1 ignore %$self keys that are not schema methods --- diff --git a/lib/Catalyst/Model/DBIC/Schema.pm b/lib/Catalyst/Model/DBIC/Schema.pm index 993c02c..982b3e3 100644 --- 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}); } }