Skip to content

Commit

Permalink
Merge pull request #8 from eljojo/master
Browse files Browse the repository at this point in the history
Failing when requesting siblings. Tests forthcoming.
  • Loading branch information
mceachen committed Jun 11, 2012
2 parents 650a245 + 7d7c3fc commit adfadd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/closure_tree/acts_as_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def descendants
end

def self_and_siblings
self.class.scoped.where(:parent => parent)
self.class.scoped.where(:parent_id => parent)
end

def siblings
Expand Down

0 comments on commit adfadd9

Please sign in to comment.