Project

General

Profile

« Previous | Next » 

Revision 10923

Restores acts_as_tree instance methods removed in r10919.

View differences:

trunk/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
47 47
          has_many :children, :class_name => name, :foreign_key => configuration[:foreign_key], :order => configuration[:order], :dependent => configuration[:dependent]
48 48

  
49 49
          scope :roots, where("#{configuration[:foreign_key]} IS NULL").order(configuration[:order])
50

  
51
          send :include, ActiveRecord::Acts::Tree::InstanceMethods
50 52
        end
51 53
      end
52 54

  

Also available in: Unified diff