Skip to content
Browse files

use reject in field list

  • Loading branch information...
1 parent 180a4cb commit b13043314ccca2574fdb27325cfc05167ea9a8c3 @durran durran committed Apr 2, 2012
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

0 comments on commit b130433

Please sign in to comment.
Something went wrong with that request. Please try again.