Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Catalyst-View-Email CPAN distribution.

Report information
The Basics
Id: 83241
Status: resolved
Priority: 0/
Queue: Catalyst-View-Email

People
Owner: devin.austin [...] gmail.com
Requestors: ilmari [...] ilmari.org
Cc:
AdminCc:

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



Subject: [PATCH] Fix for Mooified Email::Sender
Date: Sat, 9 Feb 2013 17:00:46 +0000
To: bug-Catalyst-View-Email [...] rt.cpan.org
From: Dagfinn Ilmari Mannsåker <ilmari [...] ilmari.org>
Moo::Role inflation to Moose doesn't create a type constraint, so 'isa' fails. Email::Sender::Transport has been a role since before we started using it, so just use an explicit 'does' instead of 'isa'. --- lib/Catalyst/View/Email.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Catalyst/View/Email.pm b/lib/Catalyst/View/Email.pm index d7e7c40..8c6055d 100644 --- a/lib/Catalyst/View/Email.pm +++ b/lib/Catalyst/View/Email.pm @@ -20,7 +20,7 @@ has 'mailer' => ( has '_mailer_obj' => ( is => 'rw', - isa => 'Email::Sender::Transport', + does => 'Email::Sender::Transport', lazy => 1, builder => '_build_mailer_obj', ); -- 1.7.10.4
I can confirm this works. I was having issues with a project of mine (https://travis-ci.org/maximos/maximus-web/jobs/4701006/#L1260), this patch fixes that.
This has been fixed in 0.33 and is pending release.