Could it be that in Rails every single time the garbage collector
cleans up the class? I understand that controllers are instantiated on every request, but I would expect my class variable @@call_count to retain
its value over requests, no?
In development mode your classes are reloaded for every request (so
that you changes to your code are picked up without a server restart).
In production mode each mongrel acts independently, so don't rely on
this sort of stuff other than as a cache.
Fred