I don't like the idea to define default_scope
within a module and then include it. This would sound more natural to be the job of model itself.
However, you can still use unscoped
to remove these default scopes.
Foo.all
# Returns relation object with current two default scopes
Foo.unscoped
# Returns all results without any scope
Foo.unscoped do
where(active: true)
end
# Returns object with only one scope applied