# Is it possible to reload all ActiveRecord objects

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-reload-all-activerecord-objects/98125>\
**Category:** Rails\
**Created:** [July 12, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-reload-all-activerecord-objects/98125 "2006-07-12T17:58:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [July 12, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-reload-all-activerecord-objects/98125/1 "2006-07-12T17:58:21Z")

</div>

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](http://www.informatikamihelac.com)  
 → tools, scripts, tricks from our code lab: [http://source.mihelac.org](http://source.mihelac.org)

---

<div class="post-metadata">

**Author:** ![bmihelac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/5fc32e/32.png) [@bmihelac](https://www.ruby-forum.com/u/bmihelac)\
**Post date:** [July 13, 2006, 4:09am UTC](https://www.ruby-forum.com/t/is-it-possible-to-reload-all-activerecord-objects/98125/2 "2006-07-13T04:09:31Z")

</div>

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://re.visioni.st)  
[http://quotedprintable.com](http://quotedprintable.com)
