This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.
uniq_by(&block)
DEPRECATED: Use Array#uniq instead.
Returns a unique array based on the criteria in the block.
[1, 2, 3, 4].uniq_by { |i| i.odd? } # => [1, 2]
# File activesupport/lib/active_support/core_ext/array/uniq_by.rb, line 7 def uniq_by(&block) ActiveSupport::Deprecation.warn 'uniq_by is deprecated. Use Array#uniq instead' uniq(&block) end