vendor/plugins/acts_as_commentable/lib/comment_methods.rb
def find_comments_for_commentable(commentable_str, commentable_id)
        find(:all,
          :conditions => ["commentable_type = ? and commentable_id = ?", commentable_str, commentable_id],
          :order => "created_at DESC"
        )
      end
# Helper class method to look up all comments for 
# commentable class name and commentable id.
Helper class method to look up all comments for
commentable class name and commentable id.
Helper class method to look up all comments for commentable class name and commentable id .
def find_comments_for_commentable(commentable_str, commentable_id)
        find(:all,
          :conditions => ["commentable_type = ? and commentable_id = ?", commentable_str, commentable_id],
          :order => "created_at DESC"
        )
      end
def find_comments_for_commentable ( commentable_str , commentable_id ) find ( :all , :conditions => [ "commentable_type = ? and commentable_id = ?" , commentable_str , commentable_id ] , :order => "created_at DESC" ) end
Helper class method to look up all comments for
commentable class name and commentable id.
Helper class method to look up all comments for commentable class name and commentable id .
commentable_str
commentable_id