Fix Performance/HashEachMethods offenses

values.each and keys.each methods are depreciated, so they have replaced by
each_value and each_key respectively. This has done manually.

Closes https://github.com/openSUSE/osem/issues/1825
This commit is contained in:
Ronaq13 2017-12-09 14:03:59 +05:30 committed by Ana María Martínez Gómez
parent 99ab06d117
commit 505d9da3d4
6 changed files with 6 additions and 15 deletions

View file

@ -376,15 +376,6 @@ Naming/VariableNumber:
Exclude:
- 'spec/models/ticket_purchase_spec.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Performance/HashEachMethods:
Exclude:
- 'app/controllers/admin/conferences_controller.rb'
- 'app/helpers/application_helper.rb'
- 'db/migrate/20140701123203_add_events_per_week_to_conference.rb'
- 'spec/factories/event_users.rb'
# Offense count: 1
# Cop supports --auto-correct.