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.
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.
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!!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.