Permalink
Browse files

Array#uniq_by is deprecated in favor of Array#uniq

  • Loading branch information...
1 parent d87dabe commit 960af83cd1f93e8cdc321b7f66e1650e1663551a @etehtsea etehtsea committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongoid/extensions/array.rb
@@ -25,7 +25,7 @@ def __evolve_object_id__
#
# @since 3.0.0
def __find_args__
- flat_map{ |a| a.__find_args__ }.uniq_by{ |a| a.to_s }
+ flat_map{ |a| a.__find_args__ }.uniq{ |a| a.to_s }
end
# Mongoize the array into an array of object ids.

0 comments on commit 960af83

Please sign in to comment.