in reply to Re^2: Catalyst, Accessing Cache plugins from Models
in thread Catalyst, Accessing Cache plugins from Models
What you see is getting a reference to the controller object, and getting a reference from the controller to the cache object, and storing the reference to the cache object
use namespace::autoclean; use Moose::Role; before ACCEPT_CONTEXT => sub { my ($self, $c) = @_; ... $self->schema->default_resultset_attributes({ cache_object => $c->cache }); }
So Your Mother is onto something, all I can say is EEEEW
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Catalyst, Accessing Cache plugins from Models
by djzort (Sexton) on Mar 25, 2014 at 03:16 UTC | |
by Your Mother (Archbishop) on Mar 25, 2014 at 03:57 UTC |