projects
/
catagits/catbook-code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
move to using $object->translated rather than separate model
[catagits/catbook-code.git]
/
lib
/
LolCatalyst
/
Lite
/
Controller
/
Translate.pm
diff --git
a/lib/LolCatalyst/Lite/Controller/Translate.pm
b/lib/LolCatalyst/Lite/Controller/Translate.pm
index
8df27b7
..
04d6a96
100644
(file)
--- a/
lib/LolCatalyst/Lite/Controller/Translate.pm
+++ b/
lib/LolCatalyst/Lite/Controller/Translate.pm
@@
-30,8
+30,7
@@
sub view :Chained('object') :PathPart('') :Args(0) {
my ($self, $c) = @_;
my $object = $c->stash->{object};
$c->stash(
- result => $c->model('Translator')
- ->translate($object->{text})
+ result => $object->translated
);
}