Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saks committed Jun 15, 2010
1 parent a98bb62 commit f19b3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid_acts_as_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def root

def ancestors
return [] if root?
self.class.where(:_id.in => self[path_field]).order_by(depth_field)
self.class.where(:_id.in => self[path_field]).order_by(depth_field)
end

def self_and_ancestors
Expand Down

0 comments on commit f19b3ed

Please sign in to comment.