spree/spree — pull request #4225 by alepore (2014-01-18 16:39:22+00:00)
Title: prefix table name on scopes

I think it's good to always prefix table names in scopes to avoid breaking queries with joins when using `merge()`.

For example i had a problem joining `Product` with `merge(Variant.deleted)` (ambiguous column name: deleted_at)