Skip to content

Commit

Permalink
Fixed issue with has_children where it thought a block was being pass…
Browse files Browse the repository at this point in the history
…ed instead of a empty hash parameter.
  • Loading branch information
Fryguy authored and stefankroes committed Sep 11, 2010
1 parent ecea76f commit 067fa51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ancestry/instance_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def child_ids
end

def has_children?
self.children.exists? {}
self.children.exists?({})
end

def is_childless?
Expand Down

0 comments on commit 067fa51

Please sign in to comment.