summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 21:20:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 21:20:27 +0000
commit7a40e309e423cff76990e40ddb9ee33e892625b0 (patch)
treec94b83c6cccffc0857d325d74cedec68c08c2a47 /lib
parent923062895315afa9fe4ae4487432f72af455bd0d (diff)
downloadredmine-7a40e309e423cff76990e40ddb9ee33e892625b0.tar.gz
redmine-7a40e309e423cff76990e40ddb9ee33e892625b0.zip
Restores acts_as_tree instance methods removed in r10919.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10923 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
index 4e5f37182..d069da972 100644
--- a/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
+++ b/lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb
@@ -47,6 +47,8 @@ module ActiveRecord
has_many :children, :class_name => name, :foreign_key => configuration[:foreign_key], :order => configuration[:order], :dependent => configuration[:dependent]
scope :roots, where("#{configuration[:foreign_key]} IS NULL").order(configuration[:order])
+
+ send :include, ActiveRecord::Acts::Tree::InstanceMethods
end
end