[Jifty-commit] jifty-dbi branch, master, updated. 0.60-19-gc7ae2b6
Jifty commits
jifty-commit at lists.jifty.org
Thu Jun 10 16:40:02 EDT 2010
The branch, master has been updated
via c7ae2b6c370dba64ed4436c76b1c2859a33b4b8e (commit)
from 587e58eed663e0a621500342ccbdd59bc9924e79 (commit)
Summary of changes:
lib/Jifty/DBI/Record.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit c7ae2b6c370dba64ed4436c76b1c2859a33b4b8e
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Jun 10 16:40:03 2010 -0400
Warn about load(arg => value)
diff --git a/lib/Jifty/DBI/Record.pm b/lib/Jifty/DBI/Record.pm
index 236cc2c..581da1e 100755
--- a/lib/Jifty/DBI/Record.pm
+++ b/lib/Jifty/DBI/Record.pm
@@ -1070,6 +1070,7 @@ whose primary key is $id.
sub load {
my $self = shift;
return unless @_ and defined $_[0];
+ Carp::carp("load called with more than one argument. Did you mean load_by_cols?") if @_ > 1;
return $self->load_by_cols( id => shift );
}
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list