Hi,

Mojolicious/Controller.pm uses ->stash->{'mojo.secrets'}, whereas
Mojolicious/Plugin/DefaultHelpers.pm uses ->app->secrets to access the
secrets. stash->{'mojo.secrets'} is just a copy of what app->secrets
returned when the controller was built.
Would it be feasible to make access to secrets always through
app->secrets and avoid the copy in the controller?

I'm asking because I have the secrets in the database but need to
avoid the datatabase access during startup().

cu
Ludwig

--
 (o_   Ludwig Nussel
 //\
 V_/_  http://www.suse.de/
SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 
(AG Nürnberg)
Maxfeldstraße 5; 90409 Nürnberg; Germany

--
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to