Permalink
Browse files

Changed the condition for aliasing acts_as_tree.

  • Loading branch information...
1 parent 469fe34 commit 62f267923b703752fb9cb1c0955da4c1a1dec3cb Jim Sagevid committed Apr 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ancestry/has_ancestry.rb
@@ -83,7 +83,7 @@ def has_ancestry options = {}
end
# Alias has_ancestry with acts_as_tree, if it's available.
- if !respond_to?(:acts_as_tree)
+ if !defined?(ActsAsTree)
alias_method :acts_as_tree, :has_ancestry
end
end

0 comments on commit 62f2679

Please sign in to comment.