Permalink
Browse files

renamed 'root_comments' to the more reasonable 'comment_threads'

  • Loading branch information...
1 parent afb8532 commit 15e25c47e1de863eaf351cf7c5dd76823bbceda4 @elight elight committed Nov 16, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/acts_as_commentable_with_threading.rb
  2. +1 −1 spec/commentable_spec.rb
@@ -15,7 +15,7 @@ def self.included(base)
module ClassMethods
def acts_as_commentable
- has_many :root_comments, :class_name => "Comment", :as => :commentable, :dependent => :destroy, :order => 'created_at ASC'
+ has_many :comment_threads, :class_name => "Comment", :as => :commentable, :dependent => :destroy, :order => 'created_at ASC'
include Acts::CommentableWithThreading::InstanceMethods
extend Acts::CommentableWithThreading::SingletonMethods
end
@@ -2,6 +2,6 @@
describe "A class that is commentable" do
it "can have many root comments" do
- Commentable.new.root_comments.should be_a_kind_of(Enumerable)
+ Commentable.new.comment_threads.should be_a_kind_of(Enumerable)
end
end

0 comments on commit 15e25c4

Please sign in to comment.