diff --git a/lib/closure_tree/finders.rb b/lib/closure_tree/finders.rb index 3e0a69dd..490efe05 100644 --- a/lib/closure_tree/finders.rb +++ b/lib/closure_tree/finders.rb @@ -47,12 +47,12 @@ def find_all_by_generation(generation_level) end def without_self(scope) - scope.without(self) + scope.without_instance(self) end module ClassMethods - def without(instance) + def without_instance(instance) if instance.new_record? all else