What data (if any) persists across web-requests in Ruby on Rails?
Posted
by Daniel Beardsley
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Beardsley
Published on 2010-05-07T19:14:13Z
Indexed on
2010/05/07
19:18 UTC
Read the original article
Hit count: 138
I decided to use the singleton design pattern while creating a view helper class. This got me thinking; will the singleton instance survive across requests? This led to another question, Which variables (if any) survive across web requests and does that change depending on deployment? (Fastcgi, Mongrel, Passenger, ...)
I know that Controller instance variables aren't persisted. I know Constants are persisted (or reloaded?). But I don't know about class variables, instance variables on a class, Eigenclasses, ...
© Stack Overflow or respective owner