Skip to content

Commit adfadd9

Browse files
committed
Merge pull request #8 from eljojo/master
Failing when requesting siblings. Tests forthcoming.
2 parents 650a245 + 7d7c3fc commit adfadd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/closure_tree/acts_as_tree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def descendants
120120
end
121121

122122
def self_and_siblings
123-
self.class.scoped.where(:parent => parent)
123+
self.class.scoped.where(:parent_id => parent)
124124
end
125125

126126
def siblings

0 commit comments

Comments
 (0)