# Is the model() method no longer necessary

**URL:** <https://www.ruby-forum.com/t/is-the-model-method-no-longer-necessary/76384>\
**Category:** Rails\
**Created:** [November 18, 2006, 1:57am UTC](https://www.ruby-forum.com/t/is-the-model-method-no-longer-necessary/76384 "2006-11-18T01:57:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdonnell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f17d59/32.png) [@jdonnell](https://www.ruby-forum.com/u/jdonnell)\
**Post date:** [November 18, 2006, 1:57am UTC](https://www.ruby-forum.com/t/is-the-model-method-no-longer-necessary/76384/1 "2006-11-18T01:57:57Z")

</div>

I’m under the impression that the model() method is deprecated and that  
all ar models should be loaded automatically. They aren’t getting  
loaded in some cases. For example, I’m using memcached for my session  
store and it fails if I put one of my ar instances into a session  
unless i use the model() method in application.rb for that ar class.  
Actually it works fine in production mode, but fails in dev and test  
mode.

I’m not sure if this is the way it should be or if it’s a bug. Can  
anyone clarify?
