Code that executes only once when server starts up

Hello All,

I want to write a method initializes some global variables only once
when server starts. I can’t write the code in application helper or
application controller because the global variables are re initialized
on every request to the server.

Can anybody point out what should i do

Thanks

On 2 Apr 2008, at 15:03, Qasim Ali wrote:

Hello All,

I want to write a method initializes some global variables only once
when server starts. I can’t write the code in application helper or
application controller because the global variables are re initialized
on every request to the server.

config/initializers ?

Fred

Frederick C. wrote:

On 2 Apr 2008, at 15:03, Qasim Ali wrote:

Hello All,

I want to write a method initializes some global variables only once
when server starts. I can’t write the code in application helper or
application controller because the global variables are re initialized
on every request to the server.

config/initializers ?

Fred

Thank you very much sir!!