None of our examples should use the parameters inside a route or a hook (and I hope we have no such examples) because we do not assure what the parameters will be. We provide the DSL instead.

You should *always* use the DSL (allowing us to deprecate behavior, work around problems, and introduce changes) and not parameters. If you have any code that does use the parameters, please change it. If you find examples in which we made that mistake, please let us know so we could correct them.

Aside from all of this, we will fix this problem. It wasn't an intentional change, and if we have no reason to introduce this change, we won't.

Thanks for reporting it and sorry for the breakage it cost you.



On Mon, Apr 27, 2015 at 9:14 AM, Gabor Szabo <gabor@szabgab.com> wrote:


On Mon, Apr 27, 2015 at 8:54 AM, Russell Jenkins <russell.jenkins@strategicdata.com.au> wrote:
On 27/04/2015 4:20 pm, Gabor Szabo wrote:
In Dancer2-0.160000 it is not the case any more.

I get the following:  Can't locate object method "status" via package "Dancer2::Core::Response::Delayed"

Hey Garbor.

Its certainly not intentional!


thank you for looking into this!
 

To help identify the cause, do the routes that trigger this error use the `send_file` keyword ?


Yes, I think so.


Gabor
ps. I've already solved the problem for myself, using the request() function instead of the object passed to the after hook, but the issue might still be relevant to other people or might indicate some other issue as well.


_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users