Permalink
Browse files

Fix acts_as_tree include

  • Loading branch information...
1 parent 8f5d331 commit f1de7c5f84ec03fc1128cbc3a4a4664288862027 @jeremy jeremy committed Sep 11, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_record/acts/tree.rb
@@ -47,7 +47,7 @@ def acts_as_tree(options = {})
has_many :children, :class_name => name, :foreign_key => configuration[:foreign_key], :order => configuration[:order], :dependent => :destroy
class_eval <<-EOV
- include ActsAsTree::InstanceMethods
+ include ActiveRecord::Acts::Tree::InstanceMethods
def self.roots
find(:all, :conditions => "#{configuration[:foreign_key]} IS NULL", :order => #{configuration[:order].nil? ? "nil" : %Q{"#{configuration[:order]}"}})

0 comments on commit f1de7c5

Please sign in to comment.