Skip to content
Browse files

Merge pull request #49 from komba/master

fix for "Cannot visit ClassName"
  • Loading branch information...
2 parents 903bd35 + aa2fdff commit 96a2faf9f71ed0fdeec763f78a0f4ae41185c44f @skyeagle committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nested_set/base.rb
View
2 lib/nested_set/base.rb
@@ -286,7 +286,7 @@ def scope_for_rebuild(node)
end
def nodes_for_rebuild(node, node_scope)
- where(parent_column_name => node).
+ where(parent_column_name => node.id).
where(node_scope).
order(order_for_rebuild).
all

0 comments on commit 96a2faf

Please sign in to comment.
Something went wrong with that request. Please try again.