lib/rubocop/cop/rails/index_by.rb in rubocop-rails-2.14.2 vs lib/rubocop/cop/rails/index_by.rb in rubocop-rails-2.15.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module RuboCop module Cop module Rails - # This cop looks for uses of `each_with_object({}) { ... }`, + # Looks for uses of `each_with_object({}) { ... }`, # `map { ... }.to_h`, and `Hash[map { ... }]` that are transforming # an enumerable into a hash where the values are the original elements. # Rails provides the `index_by` method for this purpose. # # @example