Project

General

Profile

« Previous | Next » 

Revision d08290be

Added by Daniel Lobato Garcia over 7 years ago

Fixes #16463 - Fix with_taxonomy_scope when taxable_ids = []

The old implementation of taxonomy_scope was relying on calling
`scope.where(:id => [])`, it did it 'if taxable_ids'. A recent change
introduced more checking into that condition (taxable_ids.present?)
which made the case when taxable_ids == [] not run any scope.

That results in objects not being scoped at all when taxable_ids
is an empty array.

  • added
  • modified
  • copied
  • renamed
  • deleted