diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-26 03:12:26 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-01-26 03:12:26 +0000 |
commit | 1734a92a996a20dd6d292fc4aea58e876c24249b (patch) | |
tree | 4d096f2dc8cfd33cda02f3068f2385ad99545c00 /lib/Reaction/InterfaceModel/Reflector/DBIC.pm | |
parent | bae339c8eb0b17b50dcb8d8ef7035ffa9f225b36 (diff) | |
download | reaction-1734a92a996a20dd6d292fc4aea58e876c24249b.tar.gz reaction-1734a92a996a20dd6d292fc4aea58e876c24249b.zip |
Create fields are fixed again. Also fixed: ChooseMany when tryingto remove the last item.
Diffstat (limited to 'lib/Reaction/InterfaceModel/Reflector/DBIC.pm')
-rw-r--r-- | lib/Reaction/InterfaceModel/Reflector/DBIC.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm index 1c1feeb..1acc967 100644 --- a/lib/Reaction/InterfaceModel/Reflector/DBIC.pm +++ b/lib/Reaction/InterfaceModel/Reflector/DBIC.pm @@ -809,8 +809,8 @@ class DBIC, which { if ($attr_opts{required}) { $attr_opts{lazy} = 1; - $attr_opts{default} = $from_attr->has_default ? $from_attr->default : - sub{confess("${attr_name} must be provided before calling reader")}; + $attr_opts{default} = $from_attr->has_default ? + $from_attr->default : sub{}; } #test for relationships |