preserve $self->{name} in mk_app if defined topic/helper-preserve-name mirror/topic/helper-preserve-name
authorCaleb Cushing <xenoterracide@gmail.com>
Tue, 13 Jul 2010 06:30:30 +0000 (02:30 -0400)
committerCaleb Cushing <xenoterracide@gmail.com>
Sat, 21 Aug 2010 04:00:47 +0000 (00:00 -0400)
commitcf01f57e6a10c2979cd7b45da65d0b8aa1cacc25
tree2147470ad0a2eafc156236db53bc5dddebb73281
parent198598c51da7373607d6be19cfce7bd97903467d
preserve $self->{name} in mk_app if defined

previously you could create a new helper object with name already defined but
when you ran mk_app you had to pass a name parameter which would overwrite the
potentially already defined name. This patch allows you to do either, however
a name defined at the creation of a new helper object will take precedence.

Signed-off-by: Caleb Cushing <xenoterracide@gmail.com>
lib/Catalyst/Helper.pm
t/generated_app.t