search for: comment_thread

Displaying 1 result from an estimated 1 matches for "comment_thread".

Did you mean: comment_threads
2009 Mar 11
12
Eager loading comments associated with user submissions.
...working with: I am using the "acts_as_commentable_with_threading" plugin that I forked from elight on github http://github.com/elight/acts_as_commentable_with_threading/tree/master the association that is created is as follows class Submission < ActiveRecord::Base has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy, :order => ''created_at ASC'' end So Submission has many comment_threads.... using this association I tried to implement eager loading like this: def show @submission = Submission.find...