Fixed minor problems with renaming
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index b4b15e0..f435479 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -85,12 +85,12 @@
)
);
- # $self->helper(
- # date_format => sub {
- # my ($c, $date) = @_;
- # return $date;
- # }
- # );
+ $self->helper(
+ date_format => sub {
+ my ($c, $date) = @_;
+ return $date;
+ }
+ );
# Routes
my $r = $self->routes;
diff --git a/lib/Kalamar/API.pm b/lib/Kalamar/API.pm
index 8cc1d41..578cdc0 100644
--- a/lib/Kalamar/API.pm
+++ b/lib/Kalamar/API.pm
@@ -279,7 +279,7 @@
if (my $res = $tx->success) {
# Set api response for debugging
- $index->api_response($res->body) if $c->korap_test_port;
+ $index->api_response($res->body) if $c->kalamar_test_port;
# Json failure
my $json;