I want to instantiate an array that is accesible trough all the application, the array may change while the application is running but it will be re-generated when the application starts again.
I have though about putting that array in the ApplicationController but it will die once the request is over or not ?; and I just need it to populate it once every time the app starts running not every time a controller action is called.
The array is populated from the database and that has to be already loaded.
Thanks in advance for any guidance.
MyGlobals::statsor whatnot. But best to likely wrap it within a singleton object (no, not that type of singleton...) then:MyStats.add_stat(etc)