Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use reject in field list

  • Loading branch information...
commit b13043314ccca2574fdb27325cfc05167ea9a8c3 1 parent 180a4cb
@durran durran authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mongoid/contexts/mongo.rb
View
2  lib/mongoid/contexts/mongo.rb
@@ -403,7 +403,7 @@ def caching(&block)
end
def field_list
- options[:fields].keys.except(:_type)
+ options[:fields].keys.reject!{ |field| field == "_type" }
end
# Common functionality for grouping operations. Currently used by min, max
Please sign in to comment.
Something went wrong with that request. Please try again.