mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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:
parent
99ab06d117
commit
505d9da3d4
6 changed files with 6 additions and 15 deletions
|
|
@ -77,7 +77,7 @@ class AddEventsPerWeekToConference < ActiveRecord::Migration
|
|||
|
||||
hash.each do |week, values|
|
||||
if previous
|
||||
values.each do |state, _value|
|
||||
values.each_key do |state|
|
||||
hash[week][state] += previous[state]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue