From: Matt S Trout Date: Sat, 13 Oct 2012 17:19:29 +0000 (+0000) Subject: tweak clearer code X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1fa55deda03085cd3551ad41b10a486b87aa2ce0;p=dbsrgits%2FSQL-Abstract.git tweak clearer code --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 05ddfbd..f7b3986 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -103,10 +103,12 @@ sub _build_converter_class { } has renderer_class => ( - is => 'rw', lazy => 1, builder => '_build_renderer_class', + is => 'rw', lazy => 1, clearer => 1, builder => 1, trigger => sub { shift->clear_renderer }, ); +after clear_renderer_class => sub { shift->clear_renderer }; + sub _build_renderer_class { use_module('Data::Query::Renderer::SQL::Naive') }