From 69f51bf0aaf0fcfa23a732f7524168f52e67bd5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 10 May 2016 13:08:37 +0200 Subject: [PATCH] ClientJS: controller default auf leeren Controller Damit SL::ClientJS->new->render funktioniert --- SL/ClientJS.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SL/ClientJS.pm b/SL/ClientJS.pm index 335bf8163..91c9e1abe 100644 --- a/SL/ClientJS.pm +++ b/SL/ClientJS.pm @@ -9,8 +9,8 @@ use SL::JSON (); use Rose::Object::MakeMethods::Generic ( - scalar => [ qw(controller) ], - 'scalar --get_set_init' => [ qw(_actions _flash _error) ], + scalar => [ qw() ], + 'scalar --get_set_init' => [ qw(controller _actions _flash _error) ], ); my %supported_methods = ( @@ -244,6 +244,12 @@ sub error { return $self; } +sub init_controller { + # fallback + require SL::Controller::Base; + SL::Controller::Base->new; +} + 1; __END__ -- 2.20.1