[Jifty-commit] r2539 - jifty/trunk/lib/Jifty/Action
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jan 20 19:24:39 EST 2007
Author: sterling
Date: Sat Jan 20 19:24:38 2007
New Revision: 2539
Modified:
jifty/trunk/lib/Jifty/Action/Record.pm
Log:
Removed assumption that ref is the same as blessed.
Modified: jifty/trunk/lib/Jifty/Action/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action/Record.pm (original)
+++ jifty/trunk/lib/Jifty/Action/Record.pm Sat Jan 20 19:24:38 2007
@@ -21,6 +21,8 @@
use base qw/Jifty::Action/;
+use Scalar::Util qw/ blessed /;
+
__PACKAGE__->mk_accessors(qw(record _cached_arguments));
=head1 METHODS
@@ -150,7 +152,7 @@
# If the current value is actually a pointer to
# another object, dereference it
$current_value = $current_value->id
- if ref($current_value)
+ if blessed($current_value)
and $current_value->isa('Jifty::Record');
$info->{default_value} = $current_value if $self->record->id;
}
More information about the Jifty-commit
mailing list