Update id.rb

Fix scope for mongoid criteria