Fix `Style/HashEachMethods` cop (#28173)

master
Matt Jankowski 2023-12-01 11:07:19 -05:00 committed by GitHub
parent 3bc437b99a
commit 469ee2ae36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,6 @@ UserRole.everyone
# Create default roles defined in config file
default_roles = YAML.load_file(Rails.root.join('config', 'roles.yml'))
default_roles.each do |_, config|
default_roles.each_value do |config|
UserRole.create_with(position: config['position'], permissions_as_keys: config['permissions'], highlighted: true).find_or_create_by(name: config['name'])
end