# Disable lazy loading?

**URL:** <https://www.ruby-forum.com/t/disable-lazy-loading/186087>\
**Category:** Rails\
**Created:** [March 31, 2010, 12:36pm UTC](https://www.ruby-forum.com/t/disable-lazy-loading/186087 "2010-03-31T12:36:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/aca169/32.png) [@aurel](https://www.ruby-forum.com/u/aurel)\
**Post date:** [March 31, 2010, 12:36pm UTC](https://www.ruby-forum.com/t/disable-lazy-loading/186087/1 "2010-03-31T12:36:40Z")

</div>

Hi,

I have 2 active records with has\_one/belongs\_to association between  
them.

class Story \< ActiveRecord::Base  
belongs\_to :conclusion  
end

class Conclusion \< ActiveRecord::Base  
has\_one :story  
end

Sometimes I fetch a conclusion with story in eager loading, sometimes  
I don’t fetch the associated story.

I want to know when the associated story is fetched or not  
conclusion.story.loaded? doesn’t work.

Another question : how to completely disable lazy loading ? In order  
to be able ton simply do : conclusion.story == nil.

Thanks for your answers.
