instance method
uniq_by!
Ruby on Rails 4.0.13
Since v3.0.20 Last seen in v4.0.13Signature
uniq_by!(&block)
DEPRECATED: Use Array#uniq! instead.
Same as uniq_by, but modifies self.
Parameters
-
blockblock
Source
# File activesupport/lib/active_support/core_ext/array/uniq_by.rb, line 15
def uniq_by!(&block)
ActiveSupport::Deprecation.warn 'uniq_by! is deprecated. Use Array#uniq! instead'
uniq!(&block)
end
Defined in activesupport/lib/active_support/core_ext/array/uniq_by.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Array