Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/acts_as_commentable_with_threading.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def root_comments

# Helper method to sort comments by date
def comments_ordered_by_submitted
Comment.where(:commentable_id => id, :commentable_type => self.class.name).order('created_at DESC')
Comment.where(:commentable_id => id, :commentable_type => self.class.base_class.name).order('created_at DESC')
end

# Helper method that defaults the submitted time.
Expand Down