mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 10:30:15 -05:00
Fix Style/HashEachMethods
cop (#28173)
This commit is contained in:
parent
3bc437b99a
commit
469ee2ae36
@ -6,6 +6,6 @@ UserRole.everyone
|
|||||||
# Create default roles defined in config file
|
# Create default roles defined in config file
|
||||||
default_roles = YAML.load_file(Rails.root.join('config', 'roles.yml'))
|
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'])
|
UserRole.create_with(position: config['position'], permissions_as_keys: config['permissions'], highlighted: true).find_or_create_by(name: config['name'])
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user