[Jifty-commit] r1371 - jifty/trunk/lib/Jifty/Web/Form
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Jun 27 12:08:03 EDT 2006
Author: clkao
Date: Tue Jun 27 12:07:56 2006
New Revision: 1371
Modified:
jifty/trunk/lib/Jifty/Web/Form/Field.pm
jifty/trunk/lib/Jifty/Web/Form/Link.pm
Log:
Adding the bool overload makes it coverable!
Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm Tue Jun 27 12:07:56 2006
@@ -45,7 +45,7 @@
use Scalar::Util;
use HTML::Entities;
-use overload '""' => sub { shift->render};
+use overload '""' => sub { shift->render}, bool => sub { 1 };
=head2 new
Modified: jifty/trunk/lib/Jifty/Web/Form/Link.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Link.pm (original)
+++ jifty/trunk/lib/Jifty/Web/Form/Link.pm Tue Jun 27 12:07:56 2006
@@ -18,7 +18,7 @@
use base 'Jifty::Web::Form::Element';
# Since we don't inherit from Form::Field, we don't otherwise stringify
-use overload '""' => sub { shift->render};
+use overload '""' => sub { shift->render}, bool => sub { 1 };
=head2 accessors
More information about the Jifty-commit
mailing list