Permalink
Browse files

Fixed issue with has_children where it thought a block was being pass…

…ed instead of a empty hash parameter.
  • Loading branch information...
1 parent ecea76f commit 067fa51ed6a3386624246bdcb3c6376efc51ef8d @Fryguy Fryguy committed with stefankroes Jun 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ancestry/instance_methods.rb
@@ -141,7 +141,7 @@ def child_ids
end
def has_children?
- self.children.exists? {}
+ self.children.exists?({})
end
def is_childless?

0 comments on commit 067fa51

Please sign in to comment.