lib/closure_tree/finders.rb in closure_tree-6.0.0 vs lib/closure_tree/finders.rb in closure_tree-6.1.0

- old
+ new

@@ -45,15 +45,15 @@ SQL _ct.scope_with_order(s) 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 where(["#{_ct.quoted_table_name}.#{_ct.quoted_id_column_name} != ?", instance.id]) end