Skip to content
Closed
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 @@ -16,7 +16,7 @@ module CommentableWithThreading #:nodoc:

module ClassMethods
def acts_as_commentable
has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy
has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy, :order => "#{Comment.table_name}.lft, #{Comment.table_name}.id", :conditions => { :parent_id => nil }
include Acts::CommentableWithThreading::LocalInstanceMethods
extend Acts::CommentableWithThreading::SingletonMethods
end
Expand Down