aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Field/Boolean.pm
blob: 626045cfa51d30b948ccc5d59473ccc64db96a99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package Reaction::UI::ViewPort::Field::Boolean;

use Reaction::Class;
extends 'Reaction::UI::ViewPort::Field';

use namespace::clean -except => [ qw(meta) ];
use MooseX::Types::Moose qw/Bool/;

has '+value' => (isa => Bool);

override _empty_string_value => sub { 0 };

__PACKAGE__->meta->make_immutable;

1;