[hotfix] old usage of with_default_scope has been removed

The old usage of with_default_scope has been removed. Please, see commit rails/rails@94924dc32baf78f13e289172534c2e71c9c8cade in rails.