diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-02-02 17:07:10 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-02-02 17:07:10 +0000 |
commit | f25cb331e16a59394b9f89d90b6ee9ff77e38f91 (patch) | |
tree | b8495ed1d69ccc885b972cfca7ca2b2665a2a7e4 /lib/Reaction/UI/ViewPort/Field.pm | |
parent | cc0796e628d61c325642cba1317678c82f85daa2 (diff) | |
download | reaction-f25cb331e16a59394b9f89d90b6ee9ff77e38f91.tar.gz reaction-f25cb331e16a59394b9f89d90b6ee9ff77e38f91.zip |
add value_is_required, add logic for sync of clearer on !required attrs
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field.pm')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field.pm b/lib/Reaction/UI/ViewPort/Field.pm index 09857ff..1ddbee4 100644 --- a/lib/Reaction/UI/ViewPort/Field.pm +++ b/lib/Reaction/UI/ViewPort/Field.pm @@ -59,6 +59,10 @@ class Field is 'Reaction::UI::ViewPort', which { implements _empty_string_value => as { '' }; + implements value_is_required => as { + shift->attribute->is_required; + }; + }; 1; |