Method: Babik::QuerySet::SetOperations#difference

Defined in:
lib/babik/queryset/mixins/set_operations.rb

#difference(other_queryset) ⇒ Babik::QuerySet::Except

Difference (minus) operation

Parameters:

  • Other QuerySet

Returns:

  • Except set operation between this queryset and the other queryset.



11
12
13
# File 'lib/babik/queryset/mixins/set_operations.rb', line 11

def difference(other_queryset)
  Babik::QuerySet::Except.new(self.model, self, other_queryset)
end