Enable `Style/MapToHash` cop by koic · Pull Request #44555 · rails/rails

Summary Ruby 2.6 added block argument processing to Enumerable#to_h. https://bugs.ruby-lang.org/issues/15143 Rails 7 requires Ruby 2.7.0 or higher, so the new feature can use it. Style/MapToHash co...