I have 2 active records with has_one/belongs_to association between
class Story < ActiveRecord::Base
class Conclusion < ActiveRecord::Base
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.