Skip to content

Commit

Permalink
removes default order from acts_as_commentable as it is impossible to…
Browse files Browse the repository at this point in the history
… override
  • Loading branch information
ChristianPeters committed Dec 8, 2010
1 parent 9aaf5e2 commit 234e620
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -17,7 +17,7 @@ module CommentableWithThreading #:nodoc:

module ClassMethods
def acts_as_commentable
has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy, :order => 'created_at ASC'
has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy
include Acts::CommentableWithThreading::LocalInstanceMethods
extend Acts::CommentableWithThreading::SingletonMethods
end
Expand Down

0 comments on commit 234e620

Please sign in to comment.