fix bug with publish dates and scopes in mongoid