Re: [Rails] Time-dependent values/constants in Models: An issue or not?

2010-06-28 Thread Philip Hallstrom
On Jun 26, 2010, at 6:00 AM, Tom Ha wrote: > Hi there, > > I remember reading in the comments of a Rails blog something along these > lines: > > "Since a Model is loaded only once in production development (at server > start), certain time-dependent 'constants' that you have placed in a > metho

[Rails] Time-dependent values/constants in Models: An issue or not?

2010-06-26 Thread Tom Ha
Hi there, I remember reading in the comments of a Rails blog something along these lines: "Since a Model is loaded only once in production development (at server start), certain time-dependent 'constants' that you have placed in a method of a Model will always return the same value for those 'con