[Jifty-commit] r5879 - in Jifty-DBI/trunk: lib/Jifty/DBI
Jifty commits
jifty-commit at lists.jifty.org
Fri Sep 19 19:22:03 EDT 2008
Author: ruz
Date: Fri Sep 19 19:22:02 2008
New Revision: 5879
Modified:
Jifty-DBI/trunk/ (props changed)
Jifty-DBI/trunk/lib/Jifty/DBI/Filter.pm
Log:
r5899 at cubic-pc: cubic | 2008-09-20 02:51:44 +0400
* we know several accessors so there is no point to check if we can call them
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Filter.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Filter.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Filter.pm Fri Sep 19 19:22:02 2008
@@ -86,16 +86,15 @@
);
my $self = {};
bless $self, $class;
+
+ $self->$_( delete $args{$_} )
+ foreach qw(record column value_ref handle);
- for ( keys %args ) {
- if ( $self->can($_) ) {
- $self->$_( $args{$_} );
- }
-
+ for ( grep $self->can($_), keys %args ) {
+ $self->$_( $args{$_} );
}
return ($self);
-
}
=head2 encode
More information about the Jifty-commit
mailing list