From: Matt S Trout Date: Sat, 7 Mar 2009 20:29:30 +0000 (-0500) Subject: add missing method to make 'to' action work X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2Fcatbook-code.git;a=commitdiff_plain;h=f077afc0df6da036e1413c575f1a54cbbb04463a add missing method to make 'to' action work --- diff --git a/lib/LolCatalyst/Lite/Snippet.pm b/lib/LolCatalyst/Lite/Snippet.pm index 01edbe0..abccf30 100644 --- a/lib/LolCatalyst/Lite/Snippet.pm +++ b/lib/LolCatalyst/Lite/Snippet.pm @@ -12,6 +12,11 @@ sub translated { $self->_translator->translate($self->text); } +sub translated_to { + my ($self, $to) = @_; + $self->_translator->translate_to($to, $self->text); +} + __PACKAGE__->meta->make_immutable; 1;