[Catalyst] Re: Reaction objects and DWIM for default => sub {...}
Matt S Trout
dbix-class at trout.me.uk
Wed Jan 24 08:59:22 GMT 2007
On 24 Jan 2007, at 00:29, Guillermo Roditi wrote:
> I even tried using this:
> ...
> has created_d => (is => 'rw', required => 1, isa => 'DateTime',
> default => sub{ exit 0; } )
>
> ...
>
> and nothing happened. why is the default case not happening? is
> this related to set_or_lazy_build? It seems like it could be
> incredibly useful functionality for ActionReflector to support.
Not entirely sure why it doesn't already copy that across; patches
welcome.
--
Matt S Trout, Technical Director, Shadowcat Systems Ltd.
Offering custom development, consultancy and support contracts for
Catalyst,
DBIx::Class and BAST. Contact mst (at) shadowcatsystems.co.uk for
details.
+ Help us build a better perl ORM: http://dbix-
class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list