[Dancer-users] finding Dancer::before

igor.bujna at post.cz igor.bujna at post.cz
Mon Feb 13 13:36:34 CET 2012


Hello,
this problem is in changing 'before' to hooks. You change from:

before sub {
 ......
};

to this :

hook before_template => sub {
   ....
};

This change is on subs 'before', 'before_template' and 'after' to call this via hook
 

> ------------ Původní zpráva ------------
> Od: Puneet Kishor <punk.kish at gmail.com>
> Předmět: [Dancer-users] finding Dancer::before
> Datum: 13.2.2012 05:01:20
> ----------------------------------------
> Since I upgraded to the latest version of Dancer, I get the following message
>
> Dancer::before has been deprecated since version 1.3080. use hooks! at
> /opt/local/lib/perl5/site_perl/5.14.1/Dancer.pm line 118
>
> Except, as far as I can tell, I have not used `before` anywhere. Perhaps one of
> the plugins I am using... except, the only plugin I am using is
> Dancer::Plugin::Database; which is the latest version (1.80). Any suggestions as
> to how I can locate this offending `before` and change it?
>
>
> --
> Puneet Kishor
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
>
> 


More information about the Dancer-users mailing list