move to using $object->translated rather than separate model
[catagits/catbook-code.git] / lib / LolCatalyst / Lite / Controller / Translate.pm
index 8df27b7..04d6a96 100644 (file)
@@ -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
   );
 }