Skip Menu |

This queue is for tickets about the Trait-Attribute-Derived CPAN distribution.

Report information
The Basics
Id: 82523
Status: resolved
Priority: 0/
Queue: Trait-Attribute-Derived

People
Owner: perl [...] toby.ink
Requestors: spudsoup [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.002
Fixed in: (no value)



Subject: Synopsys code does not work
The code in the synopsis fails with: No source attribute given for derived attribute last_name at /usr/local/share/perl/5.14.2/Trait/Attribute/Derived.pm line 94 Moose::Meta::Role::__ANON__::SERIAL::3::derived_attribute_builder('Moose::Meta::Class::__ANON__::SERIAL::4=HASH(0x3571558 It looks like the fix is to set a source attribute on each derived field. (See the attached patch) Thanks Spudsoup (AKA: chrestomanci on perlmonks)
Subject: fix.patch
25a26 > source => 'full_name', 29a31 > source => 'full_name', 40d41 <
Thanks. Synopsis code fixed in 0.003.