> What is the scope of a singleton (using include Singleton) within Rails? It
> seems that my singletons only stay singletons through the end a request,
and
> then on the next request they are created anew. Is that the correct
> behavior?
That sounds correct to me--just like class variables are not actually
"stored" anywhere and are created anew on each request, so I imagine
Singleton methods are created anew. In fact, isn''t it the case that
the whole class structure of the application is re-created for each
request? I''ve wondered about that, but it seems to be the case since
each change is immediately reflected when I reload the page in my
browser.
Duane Johnson
(canadaduane)