Is it possible to reload all ActiveRecord objects

Hi all,
I wander if it is possible to force reload of all ActiveRecord object’s
of some class that are already loaded, something like Book.reload_all? I
know that I am able to reload specific objects with reload method but I
would like to reload all that are currently in memory.

thanks in advance,
Bojan


Bojan M.
Informatika Mihelac, Bojan M. s.p. | www.informatikamihelac.com
-> tools, scripts, tricks from our code lab: http://source.mihelac.org

On 12-Jul-06, at 11:54 AM, Bojan M. wrote:

I wander if it is possible to force reload of all ActiveRecord
object’s of some class that are already loaded, something like
Book.reload_all?

If you’re using the console, you can use reload! – not sure about
elsewhere, though.

/Jeff


http://re.visioni.st
http://quotedprintable.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs