X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FViewPort%2FField%2FBoolean.pm;h=53356ef7fc0590893ab42db297c92390d8310529;hb=7ea45b2aff36dd61953b1517a1cfb079dcea230c;hp=34f7aaeabdc3d4bbace2e3663d5f7530285b6f01;hpb=7adfd53f17f66ffe93763e944ed1d3fc52a369dc;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/ViewPort/Field/Boolean.pm b/lib/Reaction/UI/ViewPort/Field/Boolean.pm index 34f7aae..53356ef 100644 --- a/lib/Reaction/UI/ViewPort/Field/Boolean.pm +++ b/lib/Reaction/UI/ViewPort/Field/Boolean.pm @@ -1,32 +1,16 @@ package Reaction::UI::ViewPort::Field::Boolean; use Reaction::Class; +use aliased 'Reaction::UI::ViewPort::Field'; -class Boolean is 'Reaction::UI::ViewPort::Field', which { +use namespace::clean -except => [ qw(meta) ]; +extends Field; - has '+value' => (isa => 'Bool'); - has '+layout' => (default => 'checkbox'); -}; +has '+value' => (isa => 'Bool'); -1; +override _empty_string_value => sub { 0 }; +__PACKAGE__->meta->make_immutable; -=head1 NAME -Reaction::UI::ViewPort::Field::Boolean - -=head1 DESCRIPTION - -=head1 SEE ALSO - -=head2 L - -=head1 AUTHORS - -See L for authors. - -=head1 LICENSE - -See L for the license. - -=cut +1;