Displaying 1 result from an estimated 1 matches for "review_quest".
2007 Apr 26
1
eager loading not working in production mode
i have an eager load query as such:
@groups = ReviewQuestionGroup.find(:all,
:conditions => ["review_category_id = ?", @review.category.id],
:order => ''review_question_groups.position,
review_questions.position'',
:include => :questions)
in dev mode, this works fine... i get results like
@groups[0].questions.length = 13. in production, i get length = 0 for
all of the questions associations.
rails is issuing the same SQL statement for both m...